3 Replies Latest reply on Jul 11, 2013 3:52 PM by ctomc

    CLI script broken when upgrading from AS 7.1.1 to EAP 6.1.0

    jjohnson_vii

      I have a CLI script that is used to provision a new JBoss instance.  Part of the script it to set up a security domain for our database using a custom login module.  The script syntax I am using is:

       

      /subsystem=security/security-domain=AppDSDomain:add(cache-type="default")

      /subsystem=security/security-domain=AppDSDomain/authentication=classic:add(login-modules=[{"code"=>"mypackage.MyLoginModule","flag"=>"required","module-options"=>[("principal"=>"principal"),("userName"=>"user"),("passwordKey"=>"pw_key")]}])

       

      This worked great in 7.1.1.  In 6.1.0 I get an error message:

       

      Operation 'add' does not expect any property.

       

      The only reference I found to this online was a WildFly bug report about it.

       

      https://issues.jboss.org/browse/WFLY-108

       

      Question:  Is there a work around for this in 6.1.0?  I tried a few different things to add a login-module to a security domain through the CLI but coudln't get anything to work.

       

      Thanks!

       

      Message was edited by: jaikiran pai - Edited subject from "CLI script broken when upgrading from AS 7.1.1 to AS 6.1.0" to "CLI script broken when upgrading from AS 7.1.1 to EAP 6.1.0"

        • 1. Re: CLI script broken when upgrading from AS 7.1.1 to EAP 6.1.0
          wdfink

          The issue seems to be resolved.

          I've checked that with EAP6.1.0.Final and there the commands are executed correct.

          Which exact version do you use?

          • 2. Re: CLI script broken when upgrading from AS 7.1.1 to EAP 6.1.0
            jjohnson_vii

            Ugg.  Miscommunication & confusion around the version number changes is the culprit.  I was trying again the alpha version of 6.1.0 EAP due to that being the one that was downloaded originally several weeks ago.  It works in 6.1.0.Final.  Sorry for the false alarm, thanks for your help.

            • 3. Re: CLI script broken when upgrading from AS 7.1.1 to EAP 6.1.0
              ctomc

              Workaround or new way of doing things would be by adding authentifcation first and then add modules.

               

              something along lines

              /subsystem=security/security-domain=AppDSDomain:add(cache-type="default")

              /subsystem=security/security-domain=AppDSDomain/authentication=classic:add

              /subsystem=security/security-domain=AppDSDomain/authentication=classic/login-module=myLoginModule:add(code="mypackage.MyLoginModule",flag=required,module-options=[("principal"=>"principal"),("userName"=>"user"),("passwordKey"=>"pw_key")]}])

               

              what mentionend issue does is restores also old command that actualy then just proxies to many commands as you see above.

               

              --

              tomaz