Does anyone know if JNDI by default is supposed to do hostname validation with LDAPS?
The SSL certificate is validated, but the hostname is not.
What is the best way to implement or enable this validation?
Does anyone know if JNDI by default is supposed to do hostname validation with LDAPS?
The SSL certificate is validated, but the hostname is not.
What is the best way to implement or enable this validation?
Check out the javax.net.ssl.HostnameVerifier usage in our AbstractTlsDirContextAuthenticationStrategy. Perhaps it can be helpful.
Thanks for the pointer Ulrik, I was not familiar with the Start TLS extension.
If an LDAP server supports SSL is it guaranteed to also support Start TLS?
If not, then hostname verification cannot be done for all LDAPS connections, only if Start TLS is supported?
i just want to post once so i can create a thread.