[英]How to add security domain with Wildfly/Jboss CLI
I want to add the following to the standalone-full.xml through Wildfly/Jboss CLI.我想通过 Wildfly/Jboss CLI 将以下内容添加到standalone-full.xml。
<subsystem xmlns="urn:jboss:domain:security:2.0">
<security-domains>
<security-domain name="MY_NAME" cache-type="default">
<authentication>
<login-module code="XXX" flag="optional">
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
<login-module code="YYY" flag="required">
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
</authentication>
</security-domain>
</security-domains>
</subsystem>
It is possible with the following commands:可以使用以下命令:
/subsystem=security/security-domain=MY_NAME:add
/subsystem=security/security-domain=MY_NAME:write-attribute(name=cache-type, value=default)
/subsystem=security/security-domain=MY_NAME/authentication=classic:add(login-modules=[{code=XXX, flag=optional,module-options={password-stacking=useFirstPass}},{code=YYY, flag=required, module-options={password-stacking=useFirstPass}}]
NOTE: I already had <subsystem xmlns="urn:jboss:domain:security:2.0">
created, so anyone reading who doesn't have the mentioned subystem might want to run /subsystem=security:add
注意:我已经创建了
<subsystem xmlns="urn:jboss:domain:security:2.0">
,所以任何阅读没有提到子系统的人可能想要运行/subsystem=security:add
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.