summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-05-02 12:13:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:39 -0500
commit8719dc2b93a93e97284cee8b9a9136d8c9c46657 (patch)
tree7a2bc0505297bb7d293b80337b6e3324803df438
parent359aed77c938ff36143c2bdddd1ae0514cb29388 (diff)
downloadsamba-8719dc2b93a93e97284cee8b9a9136d8c9c46657.tar.gz
samba-8719dc2b93a93e97284cee8b9a9136d8c9c46657.tar.bz2
samba-8719dc2b93a93e97284cee8b9a9136d8c9c46657.zip
r15393: remove extra call to fallback user creation on member servers; it's handled by the smb_getpwnam() call deeper in
(This used to be commit 7433dba78bda27cd6366a49b0efc10a387439ccd)
-rw-r--r--source3/auth/auth_util.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 4ffbba2e23..c6d7b44d4e 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -1563,16 +1563,11 @@ NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx,
return NT_STATUS_NO_MEMORY;
}
+ /* this call will try to create the user if necessary */
+
nt_status = fill_sam_account(mem_ctx, nt_domain, sent_nt_username,
&found_username, &uid, &gid, sam_account);
- if (NT_STATUS_EQUAL(nt_status, NT_STATUS_NO_SUCH_USER)) {
- DEBUG(3,("User %s does not exist, trying to add it\n",
- internal_username));
- smb_create_user( nt_domain, sent_nt_username, NULL);
- nt_status = fill_sam_account( mem_ctx, nt_domain, sent_nt_username,
- &found_username, &uid, &gid, sam_account );
- }
/* if we still don't have a valid unix account check for
'map to guest = bad uid' */