Hey guys, I tried searching online and mostly on here but most answers don't satisfy. I want to get all the users that have a certain group in their memberOf attribute, but can't seem to LDAP query them properly. The string I'm using for the filter is "(&(objectClass=user)(memberOf=cn=,ou=,dc=, dc=))" - which gets no results what so ever. If I remove the 'memberof' clause it finds all the users.
My first conclusion is that multi-valued attributes such as memberof cannot be simply queried like so. What is an alternative solution?
Thanks.
(&(objectCategory=person)(objectClass=user)(memberOf=CN=GroupName,OU=A,DC=domain,DC=edu))
works as expected here. – jscott