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 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.