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>
Tue, 19 Jan 2010 10:42:26 +0000 (11:42 +0100)
See bug #6157 for more details.

metze

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

source3/passdb/pdb_ldap.c

index 6a5c96f62b9a98d239ba9bf0a9954ad13a0ac12c..0d498c88ba02107233a733aee38a2371c07fcf76 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))) {