i am trying a ldap search by java. I am using ldap ctx.
I found that there are two small trees i need to search from. For example:
resultsTest = lctx.search("OU=Company Beta,DC=example,DC=com", "something", SUBTREE_SCOPE);
(I am sure that "something" is correct because i tested a lot for the result)
There are team A, team B, team C, and team D inside Company Beta.
I found that if i add any one of them to the beginning of the search,
OU=team A
or
OU=team B
I can search the member in team A or team B. But i want to result search from team A and team B instead of search either one of them.
Can any one provide a helping hand? I had search from a lot of website but cannot found the solution.