summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-01-05 13:30:42 +0100
committerKarolin Seeger <kseeger@samba.org>2010-01-13 14:01:06 +0100
commit354e8104e5d0beb1eea2883d7b010d168d55ada5 (patch)
tree907905c25089fc34289fc8cb8d5e287cbf974816
parenta1c58a8f96f0c5ede36e25a1c6aced175bec6a9d (diff)
downloadsamba-354e8104e5d0beb1eea2883d7b010d168d55ada5.tar.gz
samba-354e8104e5d0beb1eea2883d7b010d168d55ada5.tar.xz
samba-354e8104e5d0beb1eea2883d7b010d168d55ada5.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)
-rw-r--r--source/passdb/pdb_ldap.c2
1 files changed, 1 insertions, 1 deletions
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))) {