diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-01-05 13:30:42 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-01-14 02:27:34 +0100 |
commit | ac224452b94865db346ed68dc517f84d40e6303c (patch) | |
tree | 12ac1235cbfca3e7c7e2220372f9fc35e7eba5a1 /source3/passdb | |
parent | 915b7552b71904baf6a452bdc1649e76d8286a14 (diff) | |
download | samba-ac224452b94865db346ed68dc517f84d40e6303c.tar.gz samba-ac224452b94865db346ed68dc517f84d40e6303c.tar.bz2 samba-ac224452b94865db346ed68dc517f84d40e6303c.zip |
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 25806f43ddee7e2653e907eea2c6fcc075960fa1)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_ldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index 30b27d4596..cc969bcc21 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -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))) { |