WildFly CLI - Add a Security Domain and a Custom Login Module: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * CLI Operations") |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
* [[WildFly CLI Operations#Subjects|CLI Operations]] | * [[WildFly CLI Operations#Subjects|CLI Operations]] | ||
* [[WildFly_Security_Subsystem_Configuration#Adding_a_New_Security_Domain_and_a_Login_Module_with_CLI|WildFly Security Subsystem Configuration]] | |||
=Add the Security Domain= | |||
<pre> | |||
/subsystem=security/security-domain=example:add | |||
/subsystem=security/security-domain=example/authentication=classic:add | |||
reload | |||
</pre> | |||
=Add the Custom Login Module= | |||
<pre> | |||
/subsystem=security/security-domain=example/authentication=classic/login-module=example-login-module:add(code="io.novaordis.example.jaas.LoginModule",flag="required",module=io.novaordis.example,module-options={configurationFile=.../something.cfg}) | |||
</pre> | |||
where "module=io.novaordis.example" is the name of the WildFly module that contains the code for the login module. | |||
For more details on how to add a WildFly module via CLI, see [[WildFly CLI - Add a Module|Add a WildFly Module with CLI]]. |
Latest revision as of 20:41, 8 March 2017
Internal
Add the Security Domain
/subsystem=security/security-domain=example:add /subsystem=security/security-domain=example/authentication=classic:add reload
Add the Custom Login Module
/subsystem=security/security-domain=example/authentication=classic/login-module=example-login-module:add(code="io.novaordis.example.jaas.LoginModule",flag="required",module=io.novaordis.example,module-options={configurationFile=.../something.cfg})
where "module=io.novaordis.example" is the name of the WildFly module that contains the code for the login module.
For more details on how to add a WildFly module via CLI, see Add a WildFly Module with CLI.