EAP6 does not follow LDAP referral
Issue
- When LDAP returns a referral to EAP6, EAP6 does not follow the referral and throws an exception:-
11:20:23,979 ERROR [stderr] (http-/127.0.0.1:8080-1) javax.naming.NotContextException: Cannot create context for: ldap://host02:1389/ou=referred,dc=redhat,dc=com; remaining name 'ou=referral,dc=redhat,dc=com'
11:20:23,985 ERROR [stderr] (http-/127.0.0.1:8080-1) at com.sun.jndi.ldap.LdapReferralContext.<init>(LdapReferralContext.java:123)
11:20:23,985 ERROR [stderr] (http-/127.0.0.1:8080-1) at com.sun.jndi.ldap.LdapReferralException.getReferralContext(LdapReferralException.java:132)
11:20:23,985 ERROR [stderr] (http-/127.0.0.1:8080-1) at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1841)
11:20:23,985 ERROR [stderr] (http-/127.0.0.1:8080-1) at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1752)
11:20:23,985 ERROR [stderr] (http-/127.0.0.1:8080-1) at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
11:20:23,985 ERROR [stderr] (http-/127.0.0.1:8080-1) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
11:20:23,986 ERROR [stderr] (http-/127.0.0.1:8080-1) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
11:20:23,986 ERROR [stderr] (http-/127.0.0.1:8080-1) at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
-
The LDAP authentication against Active Directory is getting "invalid user name and password" from the application .
-
Unable to login in the AdminConsole after setting up LDAP Active Directory in EAP 6 as follows:-
<security-realm name="LDAPRealm">
<authentication>
<ldap connection="ldap_connection" base-dn="dc=my,dc=domain">
<username-filter attribute="cn"/>
</ldap>
</authentication>
</security-realm>
- Getting issue
javax.naming.PartialResultExceptionwhen configuring LDAP for authentication as well asRBACor Authorization in EAP 6.2.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.0.x
- 6.1.x
- 6.2.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.