2 Replies Latest reply on Aug 16, 2012 8:32 PM by hdcosta

    Simple JAAS Authentication/Authorization

    joealex1

      Fuse 4.1.0.2 : Setting up JAAS Authentication/Authorization as per http://activemq.apache.org/security.html

       

      created login.config and placed in SERVICEMIX_BASE/etc directory

       

      activemq-domain {

          org.apache.activemq.jaas.PropertiesLoginModule required

              debug=true

              org.apache.activemq.jaas.properties.user="users.properties"

              org.apache.activemq.jaas.properties.group="groups.properties";

      };

       

      placed users.properties

       

      system=manager

      user=password

      guest=password

       

      and groups.properties in same directory

       

      admins=system

      tempDestinationAdmins=system,user

      users=system,user

      guests=guest

       

       

      Added the JAAS plugin entry in activemq config

       

      (LoginContext.java:403)

           at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:75)

           ... 14 more

      User name or password is invalid.

        • 1. Re: Simple JAAS Authentication/Authorization
          joealex1

          Looks like an issue with FUSE. Tried standalone ActiveMQ and JAAS and SimpleAuthentication plugins works fine with the same login.config.

           

          org.apache.activemq.jaas.PropertiesLoginModule in Standalone ActiveMQ is available in the activemq-jaas.jar.

           

          Installed activemq-jaas-5.3.0.4-fuse.jar in FUSE and still same error. Sometimes it seems using the FUSE distribution creates more issues.

           

          activemq-jaas (5.3.0.fuse)

          • 2. Re: Simple JAAS Authentication/Authorization
            hdcosta

            Is there any resolution to this issue? I have the same issue with FuseMQEnterprise.