mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +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:
parent
915b7552b7
commit
ac224452b9
@ -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))) {
|
||||
|
Loading…
Reference in New Issue
Block a user