-
Notifications
You must be signed in to change notification settings - Fork 488
Closed
Labels
status: duplicateA duplicate of another issueA duplicate of another issue
Description
We want to use Spring LDAP with a custom truststore because we want to use LDAPS and truststore with only the CA certificate of the LDAP servers. We do not want to configure a truststore globally, we are using and following LDAP referrals.
We were initially using a DefaultTlsDirContextAuthenticationStrategy
and configuring the sslSocketFactory property. We found that was not enough. We only got it working by setting the java.naming.ldap.factory.socket property. This required us to:
- implement a custom
SSLSocketFactory
- implement a custom
SimpleDirContextAuthenticationStrategy
that sets thejava.naming.ldap.factory.socket
property in the#setupEnvironment(Hashtable, String, String)
method. - implement a custom
DefaultSpringSecurityContextSource
that in sets thejava.naming.ldap.factory.socket
property in the#getAuthenticatedEnv(String, String)
method
mortenalbertsen
Metadata
Metadata
Assignees
Labels
status: duplicateA duplicate of another issueA duplicate of another issue