How to create security domain with the help of cli commands in JBoss EAP 6?

Solution Verified - Updated -

Issue

  • I would like to crate the security domain using CLI command, I want to use only one login module that is RealmDirect.
  • I am getting below error while try to add authentication module to the security domain .
/subsystem=security/security-domain=MySecurityDomain/authentication=classic:add(login-modules=[{name=MyLogin,code=RealmDirect,flag=required,module-options=[name=ApplicationRealm]}])
{
    "outcome" => "failed",
    "rolled-back" => true
}

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.4.0

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