How to resolve javax.naming.PartialResultException?

前端 未结 2 681
北荒
北荒 2020-12-04 15:49

We are seeing this warning messages in our logs

javax.naming.PartialResultException: Unprocessed Continuation Reference(s); remaining name \'dc=global,dc=com\'

2条回答
  •  广开言路
    2020-12-04 16:21

    OK. You will be seeing this exception, when your search returns referral and you set to ignore the referral.

    [Referral: When you search in AD, if AD thinks there are more information available in another place, it returns a referral [place to find more info] along with your search results.]

    You could avoid this exception by setting Context.REFERRAL to follow. Then it would search in the referral also [That's why it takes more time to return result].

    But in my case the referral is invalid and returned an another exception.

    I fixed this issue by changing the baseDN (search base) to be more specific. E.g. ou=users,dc=mydomain,dc=com. Now I'm not seeing this exception, because it doesn't return any referral.

提交回复
热议问题