I am having trouble with an LDAP Search Filter
. What I am needing to retrieve is all the users of a specific LDAP
group that is OU=Staff,OU=Users,OU=Accounts,DC=test,DC=local
My search is:
(&(objectCategory=user)(OU=Staff,OU=Users,OU=Accounts,DC=test,DC=local))
Currently it is returning no results. What am I missing?
You must do two things
OU=Staff,OU=Users,OU=Accounts,DC=test,DC=local
objectClass
.Using PHP, the search would look like this (based on this PHP sample):
You can test on the command line with this (exact options varies, this works with recent openldap's client tools) :