Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LDAP OU quiry filter

Status
Not open for further replies.

Mortiolla

Programmer
Oct 22, 2007
1
DK
Hi there ..
I want to search for a user in which is a member of an organization unit (ou) but I get no users out at all. this is what I wrote:
(&(objectClass=user)(ou=Develop)) and I want to show all the users who are a members of develop. is my syntax wrong?
 
Make the search base pointing to the ou, not in the filter, like this (if you are searching the defaultnamingcontext partition).
[tt] <LDAP://ou=develop,dc=xyz,dc=com>[/tt]
In the filter, the familiar class and category.
[tt] (&(objectCategory=person)(objectClass=user))[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top