[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: can't get memberof filter working



Hello,
your filter correctly doesn't return any result: First part fits for groups, second part fits for persons. Probably there is no entry in your directory beeing both person AND group ...

Regards,  Jochen.

Am 11.08.2011 16:58, schrieb masarati@aero.polimi.it:
Hi all. Im having hard time triyng to figure out what is wrong with this
ldap query:

Im triyng to filter a specific user inside a specific group. Like this
/usr/bin/ldapsearch -x -D ".." -w..
-b "o=Work"
"(&(uniquemember=uid=gherzig,ou=People,o=Work)
(memberof=cn=MailUsers,ou=Groups,o=Work))"

It gets no results, but if i remove the memberof part, it works good.
"(&(uniquemember=uid=gherzig,ou=People,o=Work))" as a filter gives me
all the entries that users is in.

What is wrong?
BTW specifiyng a different basesearch is not an option, i need that base
as it is.
There may be many causes; typically:

- the client's identity does not have search access on memberOf

- memberOf is not defined in schema, and the filter is undefined

Check the server's logs for hints.  If "stats" does not suffice, add "acl"
and "trace".

p.