Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 3822 invoked from network); 19 May 2009 14:49:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 May 2009 14:49:40 -0000 Received: (qmail 19044 invoked by uid 500); 19 May 2009 14:49:40 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 18999 invoked by uid 500); 19 May 2009 14:49:40 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 18989 invoked by uid 99); 19 May 2009 14:49:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 May 2009 14:49:40 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 May 2009 14:49:29 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1M6Qcu-0007hh-4F for users@activemq.apache.org; Tue, 19 May 2009 07:49:08 -0700 Message-ID: <23617914.post@talk.nabble.com> Date: Tue, 19 May 2009 07:49:08 -0700 (PDT) From: Richie84 To: users@activemq.apache.org Subject: Master Slave authentication - fail to authenticate but still connects MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: richiejames84@aim.com X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I have searched through previous posts, and although there are related posts, people seemed to have had the opposite issue to what I am having so heres a new post! It comes down to my master/slave configuration, which works fine, until you add the authentication ingredient in. I am encountering problems with both a simple authentication plugin and a jaas plugin. When a slave tries to attach itself to the master (using incorrect or no credentials), the master dislikes it and throws a few errors which seems positive as this is what i want, however it then proceeds in allowing the slave to attach, and this is where its lost me. The master does seem to be unhappy that slave with bad credentials is trying to connect, but it still goes a head and lets it. Below are the errors messages for a simple authentication plugin WARN TransportConnection - Failed to add Connection java.lang.SecurityException: User name or password is invalid. at org.apache.activemq.security.SimpleAuthenticationBroker.addConnection(SimpleAuthenticationBroker.java:52) at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:89) at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:679) at org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddConnection(ManagedTransportConnection.java:86) at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:125) at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:305) at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:179) at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68) at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:143) at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:206) at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84) at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:203) at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:185) at java.lang.Thread.run(Thread.java:619) ERROR Service - Async error occurred: java.lang.SecurityException: User name or password is invalid. java.lang.SecurityException: User name or password is invalid. at org.apache.activemq.security.SimpleAuthenticationBroker.addConnection(SimpleAuthenticationBroker.java:52) at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:89) at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:679) at org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddConnection(ManagedTransportConnection.java:86) at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:125) at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:305) at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:179) at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68) at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:143) at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:206) at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84) at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:203) at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:185) at java.lang.Thread.run(Thread.java:619) INFO TransportConnection - Slave Broker Slave_Broker is attached When trying the JAAS authentication, similar output is provided just with the appropriate jaas errors in. To confirm the slave is attached, if i send messages to the master, these are replicated to the slave. So i'm not sure where i am going wrong, just to clarify using both JAAS and the simple authentication it works when controlling who can send/receive messages to queues/topics, it just seems to be hitting problems with connecting brokers. I have attached the activemq.xml file (the jaas part is currently commented out). http://www.nabble.com/file/p23617914/activemq.xml activemq.xml Any clues or pointers to why the above might be happening would be great Cheers Richard -- View this message in context: http://www.nabble.com/Master-Slave-authentication---fail-to-authenticate-but-still-connects-tp23617914p23617914.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.