1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-16 20:23:50 +03:00

r17402: Added lookup_name_smbconf() to be called when looking

up names from smb.conf. If the name is unqualified it
causes the lookup to be done in WORKGROUP\name, then
"Unix [users|groups]"\name rather than searching the
domain. Should fix the problems with "force user"
selecting a domain user by preference.
Jeremy.
This commit is contained in:
Jeremy Allison
2006-08-04 20:35:52 +00:00
committed by Gerald (Jerry) Carter
parent 92ccdec33f
commit 1e1fcb5eb2
3 changed files with 54 additions and 4 deletions

View File

@@ -1053,9 +1053,9 @@ NTSTATUS create_token_from_username(TALLOC_CTX *mem_ctx, const char *username,
return NT_STATUS_NO_MEMORY;
}
if (!lookup_name(tmp_ctx, username, LOOKUP_NAME_ALL,
if (!lookup_name_smbconf(tmp_ctx, username, LOOKUP_NAME_ALL,
NULL, NULL, &user_sid, &type)) {
DEBUG(1, ("lookup_name for %s failed\n", username));
DEBUG(1, ("lookup_name_smbconf for %s failed\n", username));
goto done;
}