LDAP Authentication is failing. Returning attributes are blank on RHDG 8

Solution Verified - Updated -

Issue

Setup LDAP Realm in infispan.xml, tried to login from wenconsole and cli.sh, authentication fails.

16:13:10,932 TRACE (blocking-thread--p3-t1) [org.wildfly.security] Created HttpServerAuthenticationMechanism [org.wildfly.security.auth.server.http.SecurityIdentityServerMechanismFactory$1@3bad2c2b] for mechanism [BASIC]
16:13:10,932 TRACE (blocking-thread--p3-t1) [org.wildfly.security] Handling MechanismInformationCallback type='HTTP' name='BASIC' host-name='host50483' protocol='null'
16:13:10,932 TRACE (blocking-thread--p3-t1) [org.wildfly.security] Handling AvailableRealmsCallback: realms = [default]
16:13:10,932 DEBUG (blocking-thread--p3-t1) [org.wildfly.security.http.password] Username authentication. Realm: [default], Username: [userid2].
16:13:10,932 TRACE (blocking-thread--p3-t1) [org.wildfly.security] Handling RealmCallback: selected = [default]
16:13:10,932 TRACE (blocking-thread--p3-t1) [org.wildfly.security] Handling NameCallback: authenticationName = userid2
16:13:10,933 TRACE (blocking-thread--p3-t1) [org.wildfly.security] Principal assigning: [userid2], pre-realm rewritten: [userid2], realm name: [ldap], post-realm rewritten: [userid2], realm rewritten: [userid2]
16:13:10,933 DEBUG (blocking-thread--p3-t1) [org.wildfly.security] Obtaining lock for identity [userid2]...
16:13:10,933 DEBUG (blocking-thread--p3-t1) [org.wildfly.security] Obtained lock for identity [userid2].
16:13:10,933 DEBUG (blocking-thread--p3-t1) [org.wildfly.security] Creating [class javax.naming.directory.InitialDirContext] with environment:
16:13:10,933 DEBUG (blocking-thread--p3-t1) [org.wildfly.security]     Property [java.naming.security.credentials] with value [******]
16:13:10,933 DEBUG (blocking-thread--p3-t1) [org.wildfly.security]     Property [java.naming.security.authentication] with value [simple]
16:13:10,933 DEBUG (blocking-thread--p3-t1) [org.wildfly.security]     Property [java.naming.provider.url] with value [ldaps://ldap.server.com]
16:13:10,933 DEBUG (blocking-thread--p3-t1) [org.wildfly.security]     Property [com.sun.jndi.ldap.read.timeout] with value [30000]
16:13:10,933 DEBUG (blocking-thread--p3-t1) [org.wildfly.security]     Property [com.sun.jndi.ldap.connect.pool] with value [true]
16:13:10,933 DEBUG (blocking-thread--p3-t1) [org.wildfly.security]     Property [com.sun.jndi.ldap.connect.timeout] with value [3000]
16:13:10,933 DEBUG (blocking-thread--p3-t1) [org.wildfly.security]     Property [java.naming.security.principal] with value [cn=svc.xpaas-lab,ou=ServiceAccounts,ou=Process,dc=ddd,dc=aaa,dc=com]
16:13:10,933 DEBUG (blocking-thread--p3-t1) [org.wildfly.security]     Property [java.naming.referral] with value [ignore]
16:13:10,933 DEBUG (blocking-thread--p3-t1) [org.wildfly.security]     Property [java.naming.factory.initial] with value [com.sun.jndi.ldap.LdapCtxFactory]
16:13:10,965 DEBUG (blocking-thread--p3-t1) [org.wildfly.security] [javax.naming.ldap.InitialLdapContext@37e2d6bf] successfully created. Connection established to LDAP server.
16:13:10,965 DEBUG (blocking-thread--p3-t1) [org.wildfly.security] Trying to create identity for principal [userid2].
16:13:10,965 DEBUG (blocking-thread--p3-t1) [org.wildfly.security] Executing search [(uid={0})] in context [dc=bbb,dc=abb,dc=com] with arguments [userid2]. Returning attributes are []. Binary attributes are [].
16:13:10,969 DEBUG (blocking-thread--p3-t1) [org.wildfly.security] Context [javax.naming.ldap.InitialLdapContext@37e2d6bf] was closed. Connection closed or just returned to the pool.

Environment

  • Red Hat Data Grid (RHDG)
    • 8.1.1

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