From a84270ce115e7fa0674c163de708333816184dca Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 16 Jul 2003 02:20:53 +0000 Subject: fixes for 'net rpc vampire'. I can now take a blank Samba host and migrate an NT4 domain and still logon from domain members (tested logon scripts, system policies, profiles, & home directories) (passdb backend = tdbsam) removed call to idmap_init_wellknown_sids() from winbindd.c since the local domain should be handled by the guest passdb backend (and you don't really always want the Administrator account to be root) ...and we didn't pay attention to this anyways now. (This used to be commit 837d7c54d3ca780160aa0d6a2f0a109bb691948e) --- source3/passdb/passdb.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'source3/passdb') diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 333ac8ace6..9a99e07d82 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -1053,9 +1053,7 @@ DOM_SID *local_uid_to_sid(DOM_SID *psid, uid_t uid) struct passwd *unix_pw; BOOL ret; - winbind_off(); unix_pw = sys_getpwuid( uid ); - winbind_on(); if ( !unix_pw ) { DEBUG(4,("local_uid_to_sid: host has know idea of uid %d\n", uid)); @@ -1114,8 +1112,6 @@ BOOL local_sid_to_uid(uid_t *puid, const DOM_SID *psid, enum SID_NAME_USE *name_ return False; } - - /* lookup the user account */ if ( !NT_STATUS_IS_OK(pdb_init_sam(&sampw)) ) { @@ -1134,9 +1130,7 @@ BOOL local_sid_to_uid(uid_t *puid, const DOM_SID *psid, enum SID_NAME_USE *name_ user_name = pdb_get_username(sampw); - winbind_off(); unix_pw = sys_getpwnam( user_name ); - winbind_on(); if ( !unix_pw ) { DEBUG(0,("local_sid_to_uid: %s found in passdb but getpwnam() return NULL!\n", -- cgit