Author: jra Date: 2006-05-04 19:24:20 +0000 (Thu, 04 May 2006) New Revision: 15444
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15444 Log: Fix from Jim to ensure we do a wildcard search for SID's starting with the global SAM sid, not an exact search. Jeremy. Modified: branches/SAMBA_3_0/source/passdb/pdb_ldap.c Changeset: Modified: branches/SAMBA_3_0/source/passdb/pdb_ldap.c =================================================================== --- branches/SAMBA_3_0/source/passdb/pdb_ldap.c 2006-05-04 19:20:56 UTC (rev 15443) +++ branches/SAMBA_3_0/source/passdb/pdb_ldap.c 2006-05-04 19:24:20 UTC (rev 15444) @@ -4303,7 +4303,7 @@ 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",