summaryrefslogtreecommitdiff
path: root/source3/include/smbldap.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-03-12 17:23:17 +0100
committerVolker Lendecke <vl@samba.org>2009-05-12 15:21:46 +0200
commitc9efd454c5ffe0126bb21fdaadd421d71c38e2f7 (patch)
tree51e24cdcc2e7463f5cdb4ee77123520c89ac25d1 /source3/include/smbldap.h
parent94665adb484c25534b756012e9b55f01737b7713 (diff)
downloadsamba-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/include/smbldap.h')
-rw-r--r--source3/include/smbldap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/include/smbldap.h b/source3/include/smbldap.h
index 353e01aba6..3ac770a548 100644
--- a/source3/include/smbldap.h
+++ b/source3/include/smbldap.h
@@ -211,6 +211,9 @@ const char** get_userattr_list( TALLOC_CTX *mem_ctx, int schema_ver );
char * smbldap_talloc_single_attribute(LDAP *ldap_struct, LDAPMessage *entry,
const char *attribute,
TALLOC_CTX *mem_ctx);
+char * smbldap_talloc_smallest_attribute(LDAP *ldap_struct, LDAPMessage *entry,
+ const char *attribute,
+ TALLOC_CTX *mem_ctx);
void talloc_autofree_ldapmsg(TALLOC_CTX *mem_ctx, LDAPMessage *result);
void talloc_autofree_ldapmod(TALLOC_CTX *mem_ctx, LDAPMod **mod);
char *smbldap_talloc_dn(TALLOC_CTX *mem_ctx, LDAP *ld,