0

我需要在 jboss 中创建一些登录模块。

所以首先我创建了模块

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

下一个命令是添加参数

/subsystem=security/security-domain=sn-security-domain/authentication=classic:add(login-modules=[{"code"=>"UsersRoles", "flag"=>"required", "module-options"=>[("usersProperties"=>"path-to-file"),("rolesProperties"=>"path-to-file"),("unauthenticatedIdentity"=>"nobody")] }] )

其中 path-to-file - 是我的文件的路径。所以问题是:我可以使用 CLI 将这个文件上传到服务器,例如使用--resources= param 或类似的东西吗?

例如:我可以添加模块

module add --name=com.filter --resources= C:\activation.jar --dependencies=javax.servlet.api,javax.api,org.slf4j.jcl-over-slf4j

它将在服务器上创建模块并在那里上传activation.jar。

我希望登录模块具有相同的功能。谢谢。

4

1 回答 1

0

恐怕您必须在服务器上手动创建文件。

于 2016-11-01T06:27:26.947 回答