diff options
author | Volker Lendecke <vl@samba.org> | 2009-03-12 17:23:17 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-05-12 15:21:46 +0200 |
commit | c9efd454c5ffe0126bb21fdaadd421d71c38e2f7 (patch) | |
tree | 51e24cdcc2e7463f5cdb4ee77123520c89ac25d1 /source3/passdb | |
parent | 94665adb484c25534b756012e9b55f01737b7713 (diff) | |
download | samba-c9efd454c5ffe0126bb21fdaadd421d71c38e2f7.tar.gz samba-c9efd454c5ffe0126bb21fdaadd421d71c38e2f7.tar.bz2 samba-c9efd454c5ffe0126bb21fdaadd421d71c38e2f7.zip |
Fix bug 6157
This patch picks the alphabetically smallest one of the multi-value attribute
"uid". This fixes a regression against 3.0 and also becomes deterministic.
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_ldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index 2d3b91f184..a8fdbdae33 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_single_attribute(priv2ld(ldap_state), + if (!(username = smbldap_talloc_smallest_attribute(priv2ld(ldap_state), entry, "uid", ctx))) { |