Hi,
I use an iPlanet Ldap-Server accessed via jndi from my
Java-Environment.
Starting from a SearchBase I want to search the whole subtree for a
"uid"-Attribute.
To achieve that I built up the follwing Search-Statement:
/* specify search constraints to search subtree */
SearchControls constraints = new SearchControls();
constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
/* Create filter */
StringBuffer filter = new StringBuffer("(&(uid=");
filter.append(s.getUserID());
filter.append("))");
/* Execute Search */
NamingEnumeration results =
ctx.search(searchBase,filter.toString(),constraints);
Although I have specified the "SUBTREE_SCOPE" the search results are
only uid's from the first level depending on my searchBase. Sub-Levels
are ignored.
Why that ??
Is that possibly an iPlanet configuration Problem ?
Thanks for your help !
Rolf