ldap - 如何解决 javax.naming.PartialResultException?

标签 ldap

我们在日志中看到此警告消息
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/

相关文章:

node.js - 在我的 Node js 中获取 Windows 用户 ID,以便我可以针对 LDAP 进行身份验证

linux - ldapmodify - 无法将成员添加到 AD 组

java - 如何使用 jndi 显示 ldap 目录的所有对象类描述

active-directory - 连接到端口 636 时出现 LDAP 连接错误 ("The server is not operational.")

python-2.7 - 如何获取特定用户所属的所有组 - python、Active Directory

java - 如何使用 JNDI 在 java 中强制执行 LDAP bindRequest?

java - 在本地 Solaris 系统上验证 LDAP 登录凭据的简单方法是什么

java - Alfresco 使用 sha 存储的密码通过 LDAP 进行身份验证

java - 如何使用 LDAP Java API 创建 SharePoint 2013 用户组

javax.naming.directory.BasicAttributes.put() 方法 : is there a way to create an LDAP entry with 2 identical LDAP attributes at creation time?