0 Replies Latest reply on Dec 18, 2013 6:41 PM by Vitor Nascimento

    Jboss-cli - Adding module-option on login-module node

    Vitor Nascimento Newbie

      Hi,

       

      I'm trying to add an tag module-option on structure below and its failing, I think my syntax is wrong.

       

      This is the node:

      <security-domain name="drools-guvnor" cache-type="default">

      <authentication>

      <login-module code="UsersRoles" flag="required"/>

      </authentication>

      </security-domain>

       

      This is the commands that I ran to build it:

      /subsystem=security/security-domain=drools-guvnor:add(cache-type=default)

      /subsystem=security/security-domain=drools-guvnor/authentication=classic:add(login-modules=[{"code"=>"UsersRoles","flag"=>"required"}])

       

      So now I'm trying somethink like this to add module-option node:

      /subsystem=security/security-domain=drools-guvnor/authentication=classic/login-module=UsersRoles:add(module-options=[{"foo"="bar"}])

       

      Any suggestion ?



      I want this result:

      <security-domain name="drools-guvnor" cache-type="default">

          <authentication>

              <login-module code="UsersRoles" flag="required">

                  <module-option name="foo" value="bar"/>

                  <module-option name="fail" value="fail"/>

              </login-module>

          </authentication>

      </security-domain>