【问题标题】:Infinispan Server CLI authentificationInfinispan 服务器 CLI 身份验证
【发布时间】: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


    【解决方案1】:

    CLI 使用 REST API。我不确定您的配置是否正确,但我正在修复一些可能与刚才相关的问题。可能会在下一个 10.1.x 版本中发布 https://issues.redhat.com/browse/ISPN-11525

    更新: 如果你升级你的 10.1.x 版本,它现在应该可以工作了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-16
      • 2021-04-30
      • 2023-04-06
      相关资源
      最近更新 更多