LDAP服务器基于证书的相互身份验证失败

时间:2020-06-24 06:23:13

标签: ldap spring-ldap

我正在使用Spring-Ldap的LdapTemplate在客户端和LDAP服务器之间创建连接,从而为自定义套接字工厂提供密钥管理器,该密钥管理器包括客户端证书和包括服务器证书的信任库。 遇到以下异常:

Caused by: javax.naming.NamingException: [LDAP: error code 1 - 00000000: LdapErr: DSID-0C09125A, comment: TLS or SSL already in effect, data 0, v3839]
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3194)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3100)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2891)
    at com.sun.jndi.ldap.LdapCtx.extendedOperation(LdapCtx.java:3279)
    at javax.naming.ldap.InitialLdapContext.extendedOperation(InitialLdapContext.java:184)
    at org.springframework.ldap.core.support.AbstractTlsDirContextAuthenticationStrategy.processContextAfterCreation(AbstractTlsDirContextAuthenticationStrategy.java:131)
    at org.springframework.ldap.core.support.AbstractContextSource.doGetContext(AbstractContextSource.java:142)
    ... 16 common frames omitted

找不到该问题的具体答案。任何建议将不胜感激。

0 个答案:

没有答案