我正在尝试为ActiveMQ配置基于用户的身份验证,我对此过程中涉及的许多不同文件感到非常困惑。我已经阅读了ActiveMQ的安全页面,但我仍然有几个问题。
需要明确的是,我的目标是让只有指定的用户才能读取或写入ActiveMQ或访问 Web 控制台。这些可以是本地ActiveMQ用户,不需要 LDAP。
我已经成功地意识到,为了配置对 Web 控制台的访问,我需要在 中配置用户conf/jetty-realm.properties
,但除此之外我被卡住了。
好的,所以文件夹中似乎与身份验证相关的conf
文件是......
credentials.properties
credentials-enc.properties
groups.properties
login.config
users.properties
最重要的是,安全页面建议使用“ simpleAuthenticationPlugin
”
<simpleAuthenticationPlugin>
<users>
<authenticationUser username="system" password="manager"
groups="users,admins"/>
<authenticationUser username="user" password="password"
groups="users"/>
<authenticationUser username="guest" password="password" groups="guests"/>
</users>
</simpleAuthenticationPlugin>
在经纪人
所以我的理解是..
users.properties
似乎是用户应该去的地方,但我看不出simpleAuthenticationPlugin
这个文件是否存在。group.properties
似乎是配置组的地方,好的。login.config
似乎它只是指向users.properties
andgroups.properties
,好的。credentials.properties
似乎是多余的。看起来用户正在这里配置。如果存在,不确定为什么users.properties
存在。credentials-enc.properites
似乎是加密密码的地方,但是如果users.properties
存在,为什么还会存在呢?
我的问题是...
在ActiveMQ上配置本地用户并使其成为唯一可以读取或写入队列的正确方法是什么?
以下每个文件的目的是什么?
credentials.properties
credentials-enc.properties
groups.properties
login.config
users.properties
是否
simpleAuthenticationPlugin
使这些文件过时?