active-directory - CAS AD LDAP 32 错误

标签 active-directory ldap cas

当我尝试使用通过 LDAP 对 AD 进行身份验证的 CAS 登录时,我看到了这一点。

SEVERE: Servlet.service() for servlet cas threw exception
javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001E5, problem 2001 (NO_OBJECT), data 0, best match of:
    ''
]; remaining name '/'
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3092)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3013)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2820)
    at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1829)
    at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1752)
    at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
    at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:257)
    at org.springframework.ldap.core.LdapTemplate$3.executeSearch(LdapTemplate.java:231)
    at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:293)
    at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:237)
    at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:588)
    at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:546)
    at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:401)
    at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:421)
    at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:441)

到那时,我已通过 BindLdapAuthenticationHandler 进行身份验证,解决了问题,它生成了一个查询构建器,然后将其抛出。

我认为它在尝试恢复属性时失败了。为什么是remaining name '/' ?

最佳答案

剩余名称是 DN 的一部分,实际上并未在 DIT 的某个级别找到。例如,当您搜索 cn=johns,ou=marketing,dc=example,dc=com 时和 ou=marketing,dc=example,dc=com存在但 cn=johns不存在于 ou=marketing 内那么剩余的名称将是 cn=johns .

“/”看起来不像一个有效的 RDN。我建议验证您作为搜索库传递的内容。很可能是无效的 DN 字符串。

关于active-directory - CAS AD LDAP 32 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8172667/

相关文章:

python - 如何使用 Python 将用户添加到 LDAP 组?

python - 使用 LDAP 的 Flask 身份验证

java - Hawtio/Jaas LDAP 登录

java - 我正在为 CertificateException 的异常(exception)而苦苦挣扎。如何生成带有主题备用名称的证书

tomcat - CAS 3.4.12.1 中的页面未正确重定向错误

drupal - 这是获得 Drupal AD SSO 的可能方法吗?

Linux 中使用 Active Directory 的 SVN

.net - ContextType.ApplicationDirectory 上的 AD LDS ValidateCredentials 无法进行身份验证

java - 与 .Net 共享 Java HTTP session

ssl - 在多个 AD 域 Controller 上启用 ldaps