Thanks a lot Dominico! I have one more question, can we use JAASAuthenticationPlugin for web console users as well?
Best Sumit On Wed, Jun 10, 2020 at 1:19 AM Domenico Francesco Bruscino < [email protected]> wrote: > Hi Sumit, > > to get a working demo of JAAS Authentication Plugin with encrypted > passwords, you can execute the following steps: > > 1) Create a new broker instance: > $ ./bin/activemq create broker > > 2) Add the JAAS Authentication Plugin to activemq.xml: > <plugins> > <jaasAuthenticationPlugin configuration="activemq"/> > > 3) Replace the admin password with an encrypted password in > users.properties, ie the the encrypted password `manager`: > admin=ENC(mYRkg+4Q4hua1kvpCCI2hg==) > > 4) Enable decrypt in login.config: > activemq { > org.apache.activemq.jaas.PropertiesLoginModule required > decrypt=true > org.apache.activemq.jaas.properties.user="users.properties" > org.apache.activemq.jaas.properties.group="groups.properties"; > }; > > 5) Export the ACTIVEMQ_ENCRYPTION_PASSWORD environment variable: > $ export ACTIVEMQ_ENCRYPTION_PASSWORD=activemq > > 6) Start the broker: > $ ./broker/bin/broker start > > 7) Start the producer: > $ ./bin/activemq producer --user admin --password manager --messageCount 1 > > Regards, > Domenico > > Il giorno mar 9 giu 2020 alle ore 19:09 Sumit Bhardwaj < > [email protected]> ha scritto: > > > Hi, > > > > We are trying to use JAAS Authentication plugin for ActiveMQ. We have > been > > able to use it with plain text passwords in the users.properties. > > > > We are not able to figure out how to use the encrypted passwords in > > users.properties with JAAS Authentication Plugin. > > > > Are there any examples to achieve this? > > > > Thanks in advance. > > > > Best > > Sumit > > >
