Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certificate based mutual authentication failing for LDAP server #560

Open
zishanjms opened this issue Jun 24, 2020 · 0 comments
Open

Certificate based mutual authentication failing for LDAP server #560

zishanjms opened this issue Jun 24, 2020 · 0 comments

Comments

@zishanjms
Copy link

I am using Spring-Ldap's LdapTemplate to create the connection between client and the LDAP server providing the custom socket factory with the key-manager which includes client-certificate and trust-store which includes server certificate. Hitting the below exception:

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

Didn't find any concrete answer to the problem. Any suggestion would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant