JNDI LDAPS Connection Fails With IP-Address-Only HostName

Solution Unverified - Updated -


  • 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


  • 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://

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content