Skip to content

Add SASL EXTERNAL authentication for LDAP federation using Java default keystore - #48879

Draft
tsaarni wants to merge 1 commit into
keycloak:mainfrom
Nordix:mutual-tls-for-ldap2
Draft

Add SASL EXTERNAL authentication for LDAP federation using Java default keystore#48879
tsaarni wants to merge 1 commit into
keycloak:mainfrom
Nordix:mutual-tls-for-ldap2

Conversation

@tsaarni

@tsaarni tsaarni commented May 11, 2026

Copy link
Copy Markdown
Contributor

Note

This is PoC for SASL EXTERNAL client certificate authentication for LDAP federation using Java default keystore

This change adds support for SASL EXTERNAL method, using x509 certificate as client credentials for LDAP federation. It works with both: LDAPS and LDAP + StartTLS.

This is much simplified successor of #7365. It replaces the custom KeyStore SPI proposal with the default Java KeyStore using javax.net.ssl.keyStore and javax.net.ssl.keyStorePassword properties. Although this approach was previously rejected (link) it was long time ago and things might have changed since then (see #7365 (comment) which might have referred to #29654 (comment)).

KeyStore hot-reloading is supported without a server restart. Please note that PEM files for client certificates and keys are not supported, nor is the truststore SPI. For trusted certificates, use KC_TRUSTSTORE_PATHS (link).

See also #48832 for another PoC which uses Quarkus TLS registry for the same goal.

Fixes #11725

Signed-off-by: Tero Saarni <tero.saarni@est.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for SASL EXTERNAL authentication for LDAP federation

2 participants