summaryrefslogtreecommitdiffstats
path: root/source/passdb/passdb.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-04-18 20:22:51 +0000
committerVolker Lendecke <vlendec@samba.org>2004-04-18 20:22:51 +0000
commit44999bf19cda0df7c8582cd285ee692d9f78929a (patch)
tree09fe279a81500ff801b69476c02a23ad9812c58f /source/passdb/passdb.c
parentc45e4a056eae2870b3750ac3de8fe20c836053db (diff)
downloadsamba-44999bf19cda0df7c8582cd285ee692d9f78929a.tar.gz
samba-44999bf19cda0df7c8582cd285ee692d9f78929a.tar.xz
samba-44999bf19cda0df7c8582cd285ee692d9f78929a.zip
r270: Patch from Krischan Jodies <kj@sernet.de>: Implement 'net rpc group delete'.
Volker
Diffstat (limited to 'source/passdb/passdb.c')
-rw-r--r--source/passdb/passdb.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/passdb/passdb.c b/source/passdb/passdb.c
index bc1b0939262..7cbcdf3fa6b 100644
--- a/source/passdb/passdb.c
+++ b/source/passdb/passdb.c
@@ -382,8 +382,19 @@ NTSTATUS pdb_init_sam_new(SAM_ACCOUNT **new_sam_acct, const char *username,
/* see if we need to generate a new rid using the 2.2 algorithm */
if ( rid == 0 && lp_enable_rid_algorithm() ) {
+ /*
DEBUG(10,("pdb_init_sam_new: no RID specified. Generating one via old algorithm\n"));
rid = fallback_pdb_uid_to_user_rid(pwd->pw_uid);
+ */
+ DEBUG(0,("calling winbind_allocate_rid\n"));
+ if (!winbind_allocate_rid(&rid)) {
+ DEBUG(0,("winbind_allocate_rid failed\n"));
+ }
+ DEBUG(0,("New rid: %d\n",rid));
+ /* if ( !NT_STATUS_IS_OK(idmap_allocate_rid( &rid, ID_USERID)) ) {
+ DEBUG(0,("pdb_init_sam_new: idmap_allocate_rid() failed!\n"));
+ }
+ */
}
/* set the new SID */