I am basically walking the LDAP tree in Active Directory.
At each level I query for \"(objectClass=*)\"
. When I do this on the root eg \"dc=example,d
So when I was creating my naming context with the method:
javax.naming.ldap.InitialLdapContext.InitialLdapContext(
Hashtable, ?> environment, Control[] connCtls)
In the argument environment
there is a property with the name Context.REFERRAL
and its value should be set to: follow
. This was the setting that I needed.