-
-
2. Re: Create JAAS Login-Module using CLI
r.reimann Dec 10, 2013 3:17 AM (in response to nizzy)Hi Alan,
executing the commands as a batch seems to swallow a warning. If you remove the batch/run-batch or execute the commands interactively within the CLI you should get a warning on the second command:
[standalone@localhost:9999 /] /subsystem=security/security-domain=A_DOMAIN/:add(cache-type=default)
{"outcome" => "success"}
[standalone@localhost:9999 /] /subsystem=security/security-domain=A_DOMAIN/authentication=classic :add(login-modules=[{"code"=>"DatabaseServerLoginModule", "flag"=>"required", "module-options"=>[("dsJndiName"=>"java:jboss\datasources\A_DOMAINDS")]}])
Operation 'add' does not expect any property.
Since the add operation doesn't support properties in AS 7.2 you need to split up the second command:
batch
/subsystem=security/security-domain=A_DOMAIN/:add(cache-type=default)
/subsystem=security/security-domain=A_DOMAIN/authentication=classic:add
/subsystem=security/security-domain=A_DOMAIN/authentication=classic:write-attribute(name=login-modules, value=[{"code"=>"DatabaseServerLoginModule", "flag"=>"required", "module-options"=>[("dsJndiName"=>"java:jboss\datasources\A_DOMAINDS")]}])
run-batch
Best regards
Robert
-
3. Re: Create JAAS Login-Module using CLI
nizzy Dec 10, 2013 3:58 AM (in response to r.reimann)Thanks Robert,
Appreciated very much.