mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-10 15:32:05 -03:30
Fix ldap:// with STARTTLS
Closes: #21935 (cherry picked from commit 8effe31fdf65eddeb78f4835f8374144302e5b02)
This commit is contained in:
parent
3a5a323c2c
commit
fee2c0924d
@ -192,7 +192,7 @@ public final class LDAPContextManager implements AutoCloseable {
|
||||
|
||||
// when using Start TLS, use default socket factory for LDAP client but pass the TrustStore SSL socket factory later
|
||||
// when calling StartTlsResponse.negotiate(trustStoreSSLSocketFactory)
|
||||
if (LDAPUtil.shouldUseTruststoreSpi(ldapConfig)) {
|
||||
if (!ldapConfig.isStartTls() && LDAPUtil.shouldUseTruststoreSpi(ldapConfig)) {
|
||||
env.put("java.naming.ldap.factory.socket", "org.keycloak.truststore.SSLSocketFactory");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user