Improper mechanism-realm configuration with saslauthenticationfactory/httpauthenticationfactory cli command
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 ofmechanism 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.