summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-01-05 13:30:42 +0100
committerStefan Metzmacher <metze@samba.org>2010-01-14 02:27:34 +0100
commitac224452b94865db346ed68dc517f84d40e6303c (patch)
tree12ac1235cbfca3e7c7e2220372f9fc35e7eba5a1 /source3/passdb
parent915b7552b71904baf6a452bdc1649e76d8286a14 (diff)
downloadsamba-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.c2
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))) {