【发布时间】:2020-06-18 14:37:48
【问题描述】:
我尝试在服务器模式下启动 Infinispan 10.1.3。但在安全配置后,我在 CLI 中出现以下错误:
[断开连接]> 连接 用户名:管理员 密码: ******** 不允许用户访问服务器资源:ISPN000287:未经授权的访问:主题'null'缺少'ADMIN'权限
结果我无法通过 CLI 连接到我的 Infinspan 服务器 :(
我完全按照文档创建了所有 Infinispan 配置:
在我添加的文件 infinispan.xml 中:
<security>
<authorization>
<identity-role-mapper />
<role name="all" permissions="ALL" />
<role name="reader" permissions="READ" />
<role name="writer" permissions="WRITE" />
<role name="supervisor" permissions="READ WRITE EXEC"/>
</authorization>
</security>
...
<endpoints socket-binding="default" security-realm="default">
<hotrod-connector name="hotrod">
<authentication>
<sasl mechanisms="SCRAM-SHA-512 SCRAM-SHA-384 SCRAM-SHA-256
SCRAM-SHA-1 DIGEST-SHA-512 DIGEST-SHA-384
DIGEST-SHA-256 DIGEST-SHA DIGEST-MD5 PLAIN"
server-name="infinispan"
qop="auth"/>
</authentication>
</hotrod-connector>
<rest-connector name="rest">
<authentication mechanisms="DIGEST BASIC"/>
</rest-connector>
</endpoints>
在文件 users.properties 中我添加了: 管理员=123
在文件 groups.properties 中我添加了: 管理员=管理员
【问题讨论】:
标签: authentication server command-line-interface infinispan