diff options
author | Gerald Carter <jerry@samba.org> | 2003-07-16 02:20:53 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-07-16 02:20:53 +0000 |
commit | a84270ce115e7fa0674c163de708333816184dca (patch) | |
tree | fbad9af11ddfae189f1dd003590f50dbb4407c47 /source3/passdb | |
parent | 6b814c9908c307abf427af37c00332de5e369eb4 (diff) | |
download | samba-a84270ce115e7fa0674c163de708333816184dca.tar.gz samba-a84270ce115e7fa0674c163de708333816184dca.tar.bz2 samba-a84270ce115e7fa0674c163de708333816184dca.zip |
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)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/passdb.c | 6 |
1 files changed, 0 insertions, 6 deletions
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", |