gpt4 book ai didi

active-directory - CAS AD LDAP 32 错误

转载 作者:行者123 更新时间:2023-12-04 11:13:42 24 4
gpt4 key购买 nike

当我尝试使用通过 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com