2 Replies Latest reply on Aug 16, 2012 8:32 PM by Herman D'Costa

    Simple JAAS Authentication/Authorization

    joealex1 Newbie

      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.