【发布时间】:2011-07-27 04:41:38
【问题描述】:
我基本上是在 Active Directory 中遍历 LDAP 树。
在每个级别我都查询"(objectClass=*)"。当我在根目录上执行此操作时,例如"dc=example,dc=com" 我得到以下异常。这在我们的其他 LDAP 实例上运行良好。出于某种原因,仅在我们的 Active Directory 服务器上我得到了这个异常。在我们的 Active Directory 服务器上使用 JXplorer 时,我也遇到了同样的异常。
通过在线阅读,我发现人们说你应该打开关注,不知道这意味着什么......所以在我通过查询传递的控件对象 (javax.naming.directory.SearchControls) 上,我调用了 searchControls.setDerefLinkFlag(true)。我也尝试将其设置为false,结果相同。关于还有什么可能导致这种情况的任何建议?也许我可以解决它?
注意:在这篇文章中,我将 baseDn 从 dc=<my company domain> 更改为 example,以保护我的公司隐私。
javax.naming.PartialResultException: Unprocessed Continuation Reference(s); remaining name 'dc=example,dc=com'
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2820)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2794)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1826)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1749)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
at com.motio.pi.gui.panels.useraccess.ldap.LDAPConnector.query(LDAPConnector.java:262)
at com.motio.pi.gui.selector.directory.CognosDirectoryBrowserController.expandCognosTreeNode(CognosDirectoryBrowserController.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.motio.pi.utils.PIThreadDelegate$1.run(PIThreadDelegate.java:54)
at java.lang.Thread.run(Thread.java:662)
【问题讨论】:
标签: java active-directory ldap jndi