2 Replies Latest reply on Apr 6, 2010 11:46 AM by Daffy Duck

    Enabling JAAS with ActiveMQ in FUSE ESB 4.2.0

    Daffy Duck Novice

      Hi,

       

      Until now I've make use of the SimpleAuthentication Plug In to set up authentication for ActiveMQ. It works fine.

       

      I now try to switch to JAAS SimpleAuthentication Plug In. I've added the required plugin in activemq-broker.xml file. I declare the login module (org.apache.activemq.jaas.PropertiesLoginModule) in a file called 'login.config' (as recommended in the FUSE Message Broker security guide).

       

      The problem is whether I put 'login.config' file in ${karaf.base}/etc or in ${karaf.base}/conf, it doesn't work. I always end up with a LoginException in ServiceMix log stating that there is no login configuration declared. Where do I have to put the 'login.config' file?

       

      I've also tried to declare a JAAS realm using a blueprint xml file and dropping it into the deploy folder. The realm is correctly deployed but I still have the LoginException (this problem seems related to issue SMX4-490 https://issues.apache.org/activemq/browse/SMX4-490).

       

      How do I set up JAAS+ActiveMQ using FUSE ESB 4.2.0?

       

      Thanks

      CM