summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2009-10-31 00:45:09 +0100
committerBjörn Jacke <bj@sernet.de>2009-11-02 01:55:27 +0100
commit70063522065ab3e5a21fb11db0097b808aa11100 (patch)
tree45fa98dff356ba0af8ea0088371c3bf85617078e /source3
parentdd0e16b1d5c19f0e9aee22cb8f591398d8eaedbb (diff)
downloadsamba-70063522065ab3e5a21fb11db0097b808aa11100.tar.gz
samba-70063522065ab3e5a21fb11db0097b808aa11100.tar.xz
samba-70063522065ab3e5a21fb11db0097b808aa11100.zip
s3:ldap: don't search when no values where found
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 54cb03de853..87df75e7fd7 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -2683,7 +2683,7 @@ static NTSTATUS ldapsam_enum_group_members(struct pdb_methods *methods,
values = ldap_get_values(conn->ldap_struct, entry, "memberUid");
- if (values) {
+ if ((values != NULL) && (values[0] != NULL)) {
filter = talloc_asprintf(mem_ctx, "(&(objectClass=%s)(|", LDAP_OBJ_SAMBASAMACCOUNT);
if (filter == NULL) {