git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5f4159
)
s3:ldap: don't search when no values where found
author
Björn Jacke
<bj@sernet.de>
Fri, 30 Oct 2009 23:45:09 +0000
(
00:45
+0100)
committer
Björn Jacke
<bj@sernet.de>
Mon, 2 Nov 2009 00:56:38 +0000
(
01:56
+0100)
source3/passdb/pdb_ldap.c
patch
|
blob
|
history
diff --git
a/source3/passdb/pdb_ldap.c
b/source3/passdb/pdb_ldap.c
index 54cb03de8533795cfe2de05b98bd371d3ebed5e2..87df75e7fd7499d2800a5afbe3ea2ac55ca739c3 100644
(file)
--- 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) {