JNDI with Active Directory PartialResultException

后端 未结 2 1249
小鲜肉
小鲜肉 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.

提交回复
热议问题