summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-05-04 19:24:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:45 -0500
commitd819760f8e4b03645ba75dea26894b47a6aefd58 (patch)
treed82fea4435701f3df60294941c2997a760bbbc0c /source3
parentb857785c0e5ecb3486ba173d42124f6098e91e2a (diff)
downloadsamba-d819760f8e4b03645ba75dea26894b47a6aefd58.tar.gz
samba-d819760f8e4b03645ba75dea26894b47a6aefd58.tar.bz2
samba-d819760f8e4b03645ba75dea26894b47a6aefd58.zip
r15444: Fix from Jim to ensure we do a wildcard search for SID's
starting with the global SAM sid, not an exact search. Jeremy. (This used to be commit 755c272ebf5d0f4de15178814f998d1ec5ecb718)
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 1e3a5fdb6f..20a55ce811 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -4303,7 +4303,7 @@ static BOOL ldapsam_search_grouptype(struct pdb_methods *methods,
state->scope = LDAP_SCOPE_SUBTREE;
state->filter = talloc_asprintf(search->mem_ctx,
"(&(objectclass=sambaGroupMapping)"
- "(sambaGroupType=%d)(sambaSID=%s))",
+ "(sambaGroupType=%d)(sambaSID=%s*))",
type, sid_string_static(sid));
state->attrs = talloc_attrs(search->mem_ctx, "cn", "sambaSid",
"displayName", "description",