ActiveMQ:"User is not authenticated" 错误
ActiveMQ: "User is not authenticated" error
我正在尝试在 Red Hat Enterprise Linux 服务器版本 7.1 上设置 ActiveMQ 版本 5.10.1,新用户可以使用 Web 控制台(按照 http://activemq.apache.org/web-console.html 中的说明) .
我做了什么:
1) 在 users.properties 中创建了以下条目:myUser=myPwd
2) 将用户添加到 groups.properties
中的 'publishers' 和 'consumers' 组
3) 将以下内容添加到 jetty-realm.properties 以启用对网络的访问
控制台:myUser:myPwd,用户
4) 在plugins下的activemq.xml文件中添加了以下内容
->authorizationPlugin -> 地图 -> authorizationMap:
<authorizationEntries>
<authorizationEntry queue=">" read="admins" write="admins" admin="admins" />
<authorizationEntry queue="MYQUEUES.>" read="consumers" write="publishers" admin="admins" />
<authorizationEntry topic=">" read="admins" write="admins" admin="admins" />
<authorizationEntry topic="MYQUEUES.>" read="consumers" write="publishers" admin="admins" />
</authorizationEntries>
我可以使用新用户登录到控制台,但是当我在 Web 控制台中尝试单击我创建的任何 ActiveMQ 队列时,我在 ActiveMQ 的日志文件中收到 "SecurityException: User is not authenticated" 消息。
根据日志,错误发生在创建名称为 'queueBrowser' 的 bean 时,定义在 /WEB-INF/webconsole-query.xml.
感谢您的帮助。
activemq.xml 中缺少 jaasAuthenticationPlugin 元素。
我正在尝试在 Red Hat Enterprise Linux 服务器版本 7.1 上设置 ActiveMQ 版本 5.10.1,新用户可以使用 Web 控制台(按照 http://activemq.apache.org/web-console.html 中的说明) .
我做了什么:
1) 在 users.properties 中创建了以下条目:myUser=myPwd
2) 将用户添加到 groups.properties
中的 'publishers' 和 'consumers' 组3) 将以下内容添加到 jetty-realm.properties 以启用对网络的访问 控制台:myUser:myPwd,用户
4) 在plugins下的activemq.xml文件中添加了以下内容 ->authorizationPlugin -> 地图 -> authorizationMap:
<authorizationEntries>
<authorizationEntry queue=">" read="admins" write="admins" admin="admins" />
<authorizationEntry queue="MYQUEUES.>" read="consumers" write="publishers" admin="admins" />
<authorizationEntry topic=">" read="admins" write="admins" admin="admins" />
<authorizationEntry topic="MYQUEUES.>" read="consumers" write="publishers" admin="admins" />
</authorizationEntries>
我可以使用新用户登录到控制台,但是当我在 Web 控制台中尝试单击我创建的任何 ActiveMQ 队列时,我在 ActiveMQ 的日志文件中收到 "SecurityException: User is not authenticated" 消息。
根据日志,错误发生在创建名称为 'queueBrowser' 的 bean 时,定义在 /WEB-INF/webconsole-query.xml.
感谢您的帮助。
activemq.xml 中缺少 jaasAuthenticationPlugin 元素。