public class CrowdTlsDirContextAuthenticationStrategy
extends org.springframework.ldap.core.support.AbstractTlsDirContextAuthenticationStrategy
DefaultTlsDirContextAuthenticationStrategy
,
and is a workaround for bug affecting JDK9-JDK13. Bug is fixed in JDK14.
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8217606
https://github.com/spring-projects/spring-ldap/issues/502
DefaultTlsDirContextAuthenticationStrategy
initiates ssl connection and then performs an authentication.
At the end of the authentication process LdapContext.reconnect(Control[])
is called.
This call in JDK9-JDK13 creates new non-ssl connection, and replaces previously created ssl connection.
This is a security vulnerability.
Constructor and Description |
---|
CrowdTlsDirContextAuthenticationStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
applyAuthentication(LdapContext ctx,
String userDn,
String password) |
public CrowdTlsDirContextAuthenticationStrategy()
public void applyAuthentication(LdapContext ctx, String userDn, String password) throws NamingException
applyAuthentication
in class org.springframework.ldap.core.support.AbstractTlsDirContextAuthenticationStrategy
NamingException
Copyright © 2020 Atlassian. All rights reserved.