Hello,
 
I am trying to create a new security domain in JBoss EAP 7 with CLI.
 
I am using the following commands :
 
/profile=myprofile/subsystem=security/security-domain=management/authentication=classic:add()
/profile=myprofile/subsystem=security/security-domain=management/authentication=classic/login-module=RealmDirect:add(code=RealmDirect,flag=required,module-options={name=realm,value=ManagementRealm}) 
But the result in my XML configuration file is the following :
 
<security-domain name="management" cache-type="default">
<authentication>
<login-module code="RealmDirect" flag="required">
<module-option name="name" value="realm"/>
<module-option name="value" value="ManagementRealm"/>
</login-module>
</authentication>
</security-domain>
However, I expect the following:
 
<security-domain name="management" cache-type="default">
<authentication>
<login-module code="RealmDirect" flag="required">
<module-option name="realm" value="ManagementRealm"/>
</login-module>
</authentication>
</security-domain>
 
Do you know how to achieve this using CLI? I just tried a lot of syntaxes but I can't make it work...
 
Thanks a lot!