Can't connect to JAAS LDAP in EAP 6

Solution Unverified - Updated -

Issue

When you imgirate EAP from 5 to 6, you may find following error in server.log regarding LDAP connection:

DEBUG [gov.ca.doj.wam.jaas.LdapLoginModule] (http-localhost/127.0.0.1:8080-1) Authentication failed: javax.naming.NamingException: JBAS011843: Failed instantiate InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory from classloader ModuleClassLoader for Module "deployment.WAM.war:main" from Service Module Loader [Root exception is javax.naming.CommunicationException: simple bind failed: cadojdevdmzdc01.dbs.dev.doj.ca.gov:636 [Root exception is javax.net.ssl.SSLException: java.net.SocketException: Software caused connection abort: recv failed]]
    at org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:124)
    at org.jboss.as.naming.InitialContext.init(InitialContext.java:107)
    at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:154) [rt.jar:1.8.0_40]
    at org.jboss.as.naming.InitialContext.<init>(InitialContext.java:98)
    at org.jboss.as.naming.InitialContextFactory.getInitialContext(InitialContextFactory.java:44)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684) [rt.jar:1.8.0_40]
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313) [rt.jar:1.8.0_40]

In tcpdump you should be able to see something like:

 Version: TLS 1.2 (0x0303)

Environment

  • JBoss EAP 6.X
  • JDK 7/8

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