From d819760f8e4b03645ba75dea26894b47a6aefd58 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 4 May 2006 19:24:20 +0000 Subject: 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) --- source3/passdb/pdb_ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') 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", -- cgit