Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4951

adding Security Domain children(Authentication,Authorization,Audit,Mapping) by json not working.

    XMLWordPrintable

Details

    • Hide
      • standalone as7
      • create SecurityDomain with default-cache set.
      • attempt to create 'authentication|authorization|mapping|audit' children with valid details via json.
      • See description for more details.
      Show
      standalone as7 create SecurityDomain with default-cache set. attempt to create 'authentication|authorization|mapping|audit' children with valid details via json. See description for more details.

    Description

      -'Add' operation for Security Domain children(Authentication,Authorization,Audit,Mapping) 'fails with JBAS014746: login-modules may not be null'. The fail message is for Authentication specifically ..but the other nodes fail with matching provider-modules not be null,etc.

      • Assumes there is a securityDomain of name 'testDomain3' with cache-type='default'.

      -Once the Security Domain child does exist 'read-attribute' and 'write-attribute' operations work as expected via json. This indicates to me that the json values for 'login-modules' is sound but just not acceptable because of a bug.

      • The same 'add' operation, see below, via cli completes successfully.
        /subsystem=security/security-domain=testDomain3/authentication=classic:add(login-modules=[{"code"=>"SecureIdentity","flag"=>"required","module-options"=>{"bindDn"=>"uid=ldapSecureUser,ou=People,dc=redat,dc=com"}}])
      • This is what the json contents look like before being sent off to the server. Switching 'add' to 'write-attribute' works correctly once the node already exists.:
        {
        "operation" : "add",
        "address" : [ { "subsystem" : "security" }

        ,

        { "security-domain" : "testDomain3" }

        ,

        { "authentication" : "classic" }

        ],
        "name" : "login-modules",
        "value" : [

        Unknown macro: { "flag" }

        ]
        }

      Attachments

        Activity

          People

            sguilhen Stefan Guilhen
            spinder Simeon Pinder (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: