How to add multiple login modules and jsse in security domain using CLI command ?

Solution Verified - Updated -

Issue

  • How do I add multiple login modules and jsse in security domain in JBoss EAP domain/standalone profile using CLI command batch mode?
  • Getting Duplicate Resource Error when running batch command for security domain with multiple login modules using JBoss CLI
{
    "outcome" => "failed",
    "failure-description" => "JBAS014803: Duplicate resource [
    (\"subsystem\" => \"security\"),
    (\"security-domain\" => \"cert-security-domain\"),
    (\"authentication\" => \"classic\")
]
  • Adding JSSE to a security domain with the CLI does not persist
# add JSSE settings:
/subsystem=security/security-domain=mydomain/jsse=classic:add(keystore=[{"url" => "${jboss.server.config.dir}/jboss.keystore","password" => "secret"}])
{
"outcome" => "success",
"response-headers" => { "operation-requires-reload" => true, "process-state" => "reload-required" }
}
<security-domain name="mydomain">
<jsse></jsse>
</security-domain>

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

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