How can JBoss Negotiation be configured to remove the realm from the principal so the user can be found in LDAP?

Solution Verified - Updated -

Issue

  • SPNEGO authentication is working for our web application that is configured to use JBoss Negotiation.  However, the AdvancedLdapLoginModule is not finding any roles in our LDAP system.  The  username that the AdvancedLdapLoginModule is using to lookup the roles is "auser@TESTREALM".  However, our LDAP system does not contain a field that matches that value.  There is a field that matches "auser" though.  Can the SPNEGO login module be configured to truncate/remove the realm name from the principal?

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.1.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.