Fix bug 6157
[ira/wip.git] / source3 / passdb / pdb_ldap.c
index 2d3b91f1849f152cd8001cea063bf110a793dace..a8fdbdae336b888a2beee452d83dab72e421454b 100644 (file)
@@ -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))) {