I have an Ldap query which is used for searching for particular OU and I have multiple OU's how can I perform search for multiple OU's cause If I use OU=India then I only able to search the indian employees, need to check other OU's too.
If anybody knows that please write the same.
Many Thanks.
manuiet
Member
14 Points
37 Posts
LDAP Query to search at the Root level
Nov 23, 2011 06:10 AM|LINK
Hi All,
I have an Ldap query which is used for searching for particular OU and I have multiple OU's how can I perform search for multiple OU's cause If I use OU=India then I only able to search the indian employees, need to check other OU's too.
If anybody knows that please write the same.
Many Thanks.
smirnov
All-Star
23700 Points
4056 Posts
Re: LDAP Query to search at the Root level
Nov 23, 2011 08:28 AM|LINK
If your query was
OU=India
Use following syntax for multiple criteria
(&(OU=India)(OU=Europe)(OU=America))
--------------------------------------
There are 3 boolean operators you can use
& - AND, | - OR and ! - NOT
See some examples of usage here.