1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

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 755c272ebf)
This commit is contained in:
Jeremy Allison 2006-05-04 19:24:20 +00:00 committed by Gerald (Jerry) Carter
parent b857785c0e
commit d819760f8e

View File

@ -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",