users.properties
我正在使用 ActiveMQ Classic,并通过更新ActiveMQ 安装中的文件的服务动态加载用户。我使用org.apache.activemq.jaas.PropertiesLoginModule
withreload=true
来达到此目的。
我现在想添加一个单独的用户列表。我找不到任何关于加载多个域名的文档。
我的login.config
:
users {
org.apache.activemq.jaas.PropertiesLoginModule required
debug=True
org.apache.activemq.jaas.properties.user="users.properties"
org.apache.activemq.jaas.properties.group="groups.properties"
reload=true;
};
admins {
org.apache.activemq.jaas.PropertiesLoginModule required
debug=True
org.apache.activemq.jaas.properties.user="admins.properties"
org.apache.activemq.jaas.properties.group="admin_groups.properties";
};
在我的中activemq.xml
,我的外观应该是什么jaasAuthenticationPlugin
样的?
唯一可以定义 2 个域的情况是当您使用时,
jaasDualAuthenticationPlugin
它能够为 SSL 连接指定一个域,为非 SSL 连接指定另一个域。也就是说,您可以使用同一域中的多个模块来实现您的目标,例如:
请注意,不要使用
required
组合模块,而要使用。您可以在相应的 JavaDocsufficient
中阅读有关这些内容的更多信息。