LDAP search filter for selecting the groups with a particular member
10,842
You will need to provide a fully distinguished name for the value of the member attribute.
Something like:
(&(objectClass=group)(member=cn=yourusername,OU=Users,DC=Yourdomain,DC=net))
-jim
Author by
Craig
Updated on June 17, 2022Comments
-
Craig almost 2 years
I am trying to devise a search filter to pull the groups with a particular member. This works, in that it pulls all groups:
(&(objectClass=group)(member=*))
But this doesn't, despite when I look at the full group listing, the "member" list contains an entry that matches the expression:
(&(objectClass=group)(member=*MySurname\\, MyForename*))
This even returns no results:
(&(objectClass=group)(member=*MyForename*))
Does anybody know how I might be able to get this working?