I’m trying to create a page with spring to authenticate using ldap. I followed the official guide but trying to connect to my active directory instead of a test code. AppApplication.java HomeController.java WebSecurityConfig StackTrace I think the error is in the LDAP connection, but I think I have all the parameters fine. If you need more information please, tell me.
Tag: ldap
Rmiregistry vs LDAP
I have recently discovered the Java RMI API and I am using the Rmiregistry to store and get the remote objects. Then, I saw that we can use LDAP to do this task. I was interseted by this approach but …
jndi LDAPS custom HostnameVerifier and TrustManager
We are writing an application that shall connect to different LDAP servers. For each server we may only accept a certain certificate. The hostname in that certificate shall not matter. This is easy, when we use LDAP and STARTTLS, because we can use StartTlsResponse.setHostnameVerifier(..-) and use StartTlsResponse.negotiate(…) with a matching SSLSocketFactory. However we also need to support LDAPS connections. Java
how to accept self-signed certificates for JNDI/LDAP connections?
I need to connect to an LDAP directory over SSL. In non-production environments, we use self-signed certificates which, of course, fails to validate with: I am aware of how to use a custom trust manager for SSL-enabled connections, but don’t know how to use one in connection with the JNDI API where I don’t manage the actual connection. That is,