JNDI with Active Directory PartialResultException

后端 未结 2 1251
小鲜肉
小鲜肉 2021-02-19 01:51

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

相关标签:
2条回答
  • 2021-02-19 02:41

    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.

    0 讨论(0)
  • 2021-02-19 02:42

    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

    0 讨论(0)
提交回复
热议问题