How to update security-domain under security subsystem using JBOSS CLI?

Solution Verified - Updated -

Issue

  • Need CLI command to update instance.cli for LDAP URL change. We tried below entries in instance.cli, but it failed with error "duplicate resource, can't be added"
/subsystem=security/security-domain=ldap_security_domain/authentication=classic:add( \
    login-modules=[ \
        { \
            "module-options" => [ \
                "java.naming.provider.url" => "ldaps://URL:636", \               
            ] \
        } \
    ] \
  )

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.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