Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-6236

OOTB, security does not appear to work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 5.13.2
    • None
    • Security/JAAS
    • None
    • Mac OSX 10.11.3 (15D21)

      java version "1.8.0_66"
      Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
      Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

    Description

      download 5.13.2 - don't touch it other than to extract that tar

      cd into ActiveMQ home

      export ACTIVEMQ_ENCRYPTION_PASSWORD=activemq

      bin/activemq console xbean:examples/conf/activemq-security.xml

      (starts up)

      Run this java code: note absence of all username and password fields:

      java
      public static void main(String[] args) throws Exception{
      	System.out.println("1");
      	System.out.println("2");
      	ConnectionFactory cf = 
      		new ActiveMQConnectionFactory("tcp://192.168.3.106:61616");
      	System.out.println("3");
      	Connection conn = cf.createConnection();//userName, password);
      	System.out.println("4");
      }
      

      Output is:
      1
      2
      3
      4

      There are no exceptions at all. In debug mode I can step over the connection-creation.

      Surely this should fail? I have in fact been unable to get any connection rejected no matter how I configure it. Is this the result of connecting from the machine on which ActiveMQ is running?

      I want to believe this is user error but after hours I am unable to prove myself at fault.

      If I add anonymousAccessAllowed="false" to the simpleAuthenticationPlugin I get the same behavior

      Attachments

        Activity

          People

            Unassigned Unassigned
            primeq Paul
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: