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:
committed by
Gerald (Jerry) Carter
parent
92ccdec33f
commit
1e1fcb5eb2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user