From c9efd454c5ffe0126bb21fdaadd421d71c38e2f7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 12 Mar 2009 17:23:17 +0100 Subject: 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. --- source3/passdb/pdb_ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/passdb') 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))) { -- cgit