Samba 3.0.23pre1 problem listing groups with ldapsam backend

Jeremy Allison jra at samba.org
Thu May 4 19:23:15 GMT 2006


On Thu, May 04, 2006 at 12:24:22PM -0600, Jim McDonough wrote:
> >> I see in passdb/pdb_ldap.c the code setting up the search filter is 
> >> at line 4305 in ldapsam_search_grouptype.  Shouldn't it
> >> be (SambaSID=%s*) instead of (SambaSID=%s) since the domain sid is
> >> passed in and we want to match all groups that start with that
> >> SID?
> >
> >I haven't looked at the code you mention yet, but what you describe
> >sounds right.  Mind sending me a patch ?
> Here it is, courtesy of John...you know...rules and all....
> 
> --- passdb/pdb_ldap.c~  2006-05-03 15:25:40.000000000 -0500
> +++ passdb/pdb_ldap.c   2006-05-03 16:41:01.000000000 -0500
> @@ -4304,7 +4304,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",
> 
> ----------------------------

Committed.

Jeremy.


More information about the samba-technical mailing list