mirror of
https://github.com/samba-team/samba.git
synced 2025-09-13 17:44:21 +03:00
s3:pdb_ldap: restore Samba 3.0.x behavior and use the first "uid" value.
See bug #6157 for more details.
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 25806f43dd
)
This commit is contained in:
@@ -560,7 +560,7 @@ static bool init_sam_from_ldap(struct ldapsam_privates *ldap_state,
|
||||
goto fn_exit;
|
||||
}
|
||||
|
||||
if (!(username = smbldap_talloc_smallest_attribute(priv2ld(ldap_state),
|
||||
if (!(username = smbldap_talloc_first_attribute(priv2ld(ldap_state),
|
||||
entry,
|
||||
"uid",
|
||||
ctx))) {
|
||||
|
Reference in New Issue
Block a user