[jboss-jira] [JBoss JIRA] (AS7-4721) CLONE - Jms client can't authenticate to messaging subsystem
Justin Bertram (JIRA)
jira-events at lists.jboss.org
Mon May 7 15:28:18 EDT 2012
[ https://issues.jboss.org/browse/AS7-4721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12690908#comment-12690908 ]
Justin Bertram commented on AS7-4721:
-------------------------------------
I don't see any attachments so I can't run your exact scenario.
However, I tested this myself on the latest master of AS7 and everything worked fine. Before I added the appropriate user via add-user.sh my client was denied and then after I added the appropriate user my client was able to connect and send a message without any problem.
> CLONE - Jms client can't authenticate to messaging subsystem
> ------------------------------------------------------------
>
> Key: AS7-4721
> URL: https://issues.jboss.org/browse/AS7-4721
> Project: Application Server 7
> Issue Type: Bug
> Components: JMS, Security
> Affects Versions: 7.1.1.Final
> Reporter: Miroslav Novak
> Assignee: Jeff Mesnil
> Fix For: 7.1.2.Final (EAP)
>
>
> Jms client can't authenticate to messaging subsystem. I've prepared reproducer for EAP 6 ER6 but this issue is also in AS7 master.
> Exception:
> {code}
> Exception in thread "main" javax.jms.JMSSecurityException: Unable to validate user: admin
> at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:312)
> at org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSessionInternal(ClientSessionFactoryImpl.java:781)
> at org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSession(ClientSessionFactoryImpl.java:280)
> at org.hornetq.jms.client.HornetQConnection.authorize(HornetQConnection.java:601)
> at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:684)
> at org.hornetq.jms.client.HornetQConnectionFactory.createConnection(HornetQConnectionFactory.java:119)
> at testjndi.SecurityClient.getConnection(SecurityClient.java:308)
> at testjndi.SecurityClient.initializeClient(SecurityClient.java:83)
> at testjndi.SecurityClient.main(SecurityClient.java:363)
> Caused by: HornetQException[errorCode=105 message=Unable to validate user: admin]
> ... 9 more
> {code}
> Steps to reproduce:
> 1. Download and unzip EAP 6 ER6 - http://download.devel.redhat.com/devel/candidates/JBEAP/JBEAP-6.0.0-ER6/jboss-eap-6.0.0.ER6.zip
> 2. Using add-user.sh create user to application realm - for example with username: admin, password:adminadmin, role:guest
> 3. Unzip attached reproducer.zip and copy standalone-full-ha.xml to $JBOSS_HOME/stanalone/configuration
> 4. Start server
> 5. Start jms client in reproducer - sh start-client.sh 127.0.0.1 jms/queue/testQueue0 admin adminadmin (parameters are hostname queueJndiName username password)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list