r15444: Fix from Jim to ensure we do a wildcard search for SID's
authorJeremy Allison <jra@samba.org>
Thu, 4 May 2006 19:24:20 +0000 (19:24 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:16:45 +0000 (11:16 -0500)
starting with the global SAM sid, not an exact search.
Jeremy.
(This used to be commit 755c272ebf5d0f4de15178814f998d1ec5ecb718)

source3/passdb/pdb_ldap.c

index 1e3a5fdb6f055e5cdb58cb3aad0f39aa81ddf0e9..20a55ce81156a6a28332f874cb6cbfa80db7d517 100644 (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",