From: Stefan Metzmacher Date: Tue, 5 Jan 2010 12:30:42 +0000 (+0100) Subject: s3:pdb_ldap: restore Samba 3.0.x behavior and use the first "uid" value. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25806f43ddee7e2653e907eea2c6fcc075960fa1;p=thirdparty%2Fsamba.git 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 --- diff --git a/source/passdb/pdb_ldap.c b/source/passdb/pdb_ldap.c index 73f3e87cf06..c4f0e914e8c 100644 --- a/source/passdb/pdb_ldap.c +++ b/source/passdb/pdb_ldap.c @@ -559,7 +559,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))) {