gpt4 book ai didi

security - ActiveMQ 安全异常 : User name [defaultUser] or password is invalid

转载 作者:行者123 更新时间:2023-12-04 16:48:06 24 4
gpt4 key购买 nike

我将我的 servicemix 从 4.4.2 升级到 5.5.0。我似乎缺少一些安全配置。 servicemix 中的 ActiveMQ 版本现在是 5.12。我在日志文件中看到以下异常。

2016-01-19 12:30:47,760 | WARN  | 2.23:54741@61616 |Service | 95 - org.apache.activemq.activemq-osgi - 5.11.1 | Security Error occurred: User name [defaultUser] or password is invalid.
2016-01-19 12:30:49,759 | INFO | q-broker] Task-2 | TransportConnection | 95 - org.apache.activemq.activemq-osgi - 5.11.1 | Stopping tcp://<APPServerIP>:54742 because Failed with SecurityException: User name [defaultUser] or password is invalid.
2016-01-19 12:31:17,767 | WARN | 2.23:54746@61616 | TransportConnection | 95 - org.apache.activemq.activemq-osgi - 5.11.1 | Failed to add Connection
ID:dkdl7011.dcsgomni.com-47989-1449791490993-0:21948
java.lang.SecurityException: User name [defaultUser] or password is invalid.
at org.apache.activemq.security.SimpleAuthenticationBroker.addConnection(SimpleAuthenticationBroker.java:85)[95:org.apache.activemq.activemq-osgi:5.11.1]
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:97)[95:org.apache.activemq.activemq-osgi:5.11.1]

日志中显示的 IP 是我的 WebsphereServer。 activeMQ 控制台将其显示为我的队列的消费者。
我可以找出正在使用的 [defaultUser] 是什么吗?我在 activemq.xml 中启用了匿名用户访问。下面粘贴了部分activemq.xml。

    <plugins>
<simpleAuthenticationPlugin anonymousAccessAllowed="true">
<users>
<authenticationUser username="smx" password="pwd" groups="users,admins"/>
<authenticationUser username="karaf" password="pwd" groups="users,admins"/>
<authenticationUser username="system" password="pwd" groups="users,admins"/>
<authenticationUser username="user" password="pwd" groups="users,admins"/>
<authenticationUser username="defaultUser" password="pwd" groups="users,admins"/>
</users>
</simpleAuthenticationPlugin>

<authorizationPlugin>
<map>
<authorizationMap>
<authorizationEntries>
<authorizationEntry queue=">" write="users,admins,anonymous" read="users,admins,anonymous" admin="users,admins,anonymous" />
<authorizationEntry topic=">" write="users,admins,anonymous" read="users,admins,anonymous" admin="users,admins,anonymous" />
<authorizationEntry topic="ActiveMQ.Advisory.>" read="users,admins,anonymous" write="users,admins,anonymous" admin="users,admins,anonymous"/>
</authorizationEntries>
</authorizationMap>
</map>
</authorizationPlugin>
</plugins>

最佳答案

link帮助。默认凭据是 defaultUser/defaultPassword。我在 activemq.xml 中更新了它,它现在可以工作了。

关于security - ActiveMQ 安全异常 : User name [defaultUser] or password is invalid,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34886290/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com