JNDI LDAPS Connection Fails With IP-Address-Only HostName
Issue
- Not able to authenticate to application when LDAPS enabled; works with plain LDAP
-
Authentication fails with only this message when Realm logging is enabled (See diagnostic steps)
org.apache.catalina.authenticator.FormAuthenticator.doAuthenticate Authenticating username 'test_user' org.apache.catalina.authenticator.AuthenticatorBase.invoke Failed authenticate() test
Environment
- Java Development Kit (JDK)
- 1.8 / 8 Update 60 and later
- 11
- Red Hat JBoss Web Server (JBoss Web Server) 5
- LDAP with LDAPS enabled
- LDAP server specified as just an IP address, for example ldaps://10.0.0.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.