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
If you get an exception while referral usage in follow (for example: connection timed out) you can use referral ignore but you dont want to get partial exception you can use 3268 port number instead of 389 this port is using global catalog for ldap. You can find info from following link;
https://technet.microsoft.com/en-us/library/how-global-catalog-servers-work(v=ws.10).aspx