Improper mechanism-realm configuration with saslauthenticationfactory/httpauthenticationfactory cli command

Solution Verified - Updated -

Issue

  • When adding sasl authentication factory with below cli command, we get an issue where mechanism-realm realm-name="testrealm" is created outside the context of mechanism mechanism-name="PLAIN", same thing observed also for http-authentication-factory:

$ saslauthenticationfactory add --name=testauth --sasl-server-factory=testfact --security-domain=testdom --mechanism-configurations=[{mechanism-name=PLAIN,mechanism-realm-configurations=[{realm-name=testrealm}]}] #Result: <mechanism-configuration> <mechanism mechanism-name="PLAIN"/> <mechanism> <mechanism-realm realm-name="testrealm"/> </mechanism>

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    7.4
  • OpenJDK
    17

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