s3:pdb_ldap: restore Samba 3.0.x behavior and use the first "uid" value.
authorStefan Metzmacher <metze@samba.org>
Tue, 5 Jan 2010 12:30:42 +0000 (13:30 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 13 Jan 2010 13:01:06 +0000 (14:01 +0100)
See bug #6157 for more details.

metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 25806f43ddee7e2653e907eea2c6fcc075960fa1)

source/passdb/pdb_ldap.c

index 73f3e87cf06b4c01afb47f7052a9be9d6c4f40da..c4f0e914e8ce097b500b4768c5da690f0d6e913f 100644 (file)
@@ -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))) {