我们在日志中看到此警告消息javax.naming.PartialResultException: Unprocessed Continuation Reference(s); remaining name 'dc=global,dc=com'
每当用户登录我们的应用程序时,它就会出现。
根据 this SO post ,可以通过设置Context.REFERRAL
来解决至 follow
.但它将搜索时间从 1 秒增加到 4 秒。
其实你可以引用this SO post ,它说使用 follow
减慢搜索速度。
所以我的问题是,在不影响性能的情况下从我们的日志中摆脱这个异常的最佳方法是什么?
最佳答案
另一种可行的解决方案是更改端口号(假设这是一个 GC 服务器):
If you were using the port 389 change it to 3268
If you were using the port 636 change it to 3269
这可能有效,因为(我引用):
A GC (global catalog) server returns referrals on 389 to refer to the greater AD "forest", but acts like a regular LDAP server on 3268 (and 3269 for LDAPS)
它对我有用。
我在 Shibboleth 用户列表中找到了这个解决方案,由 Paul Caskey 回答(所有功劳都归功于他)。
您可以在此链接上查看对话:
https://lists.internet2.edu/sympa/arc/shibboleth-users/2008-06/msg00039.html
关于ldap - 如何解决 javax.naming.PartialResultException?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16412236/