activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From magellings <mark.gelli...@qg.com>
Subject Dynamically setting activemq username password when logging into web console
Date Thu, 29 Oct 2009 18:49:58 GMT

Hi.

I'm using ActiveMQ 5.2 and am wondering if there is a way to set the
userName and password properties in webconsole-embedded.xml based on
credentials entered with a basic authentication setup for the web console?  

  <bean id="connectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
    <property name="brokerURL" value="vm://localhost"/>
    <property name="userName" value="${activemq.username}"/>
    <property name="password" value="${activemq.password}"/>    
  </bean>

These are the credentials the web console uses to connect to the broker.  I
want to be able to configure privs based on what credentials the user uses
to log into the web console.  I currently configure privs with the
simpleAuthentication/authorization plugin configured in activemq.xml.  I'd
like to add another user with read-only privs in which they can log in with
that user to the web console and restricts them from deleting
queues/messages etc.

    <plugins>
      <simpleAuthenticationPlugin>
        <users>
          <authenticationUser username="GL$ACTIVEMQ_QUADNMS"
password="destination" groups="producers,consumers,admins" />
        </users>
      </simpleAuthenticationPlugin>
      <authorizationPlugin>
        <map>
          <authorizationMap>
            <authorizationEntries>
              <authorizationEntry queue=">" write="producers"
read="consumers" admin="admins,producers" />
              <authorizationEntry topic=">" read="admins"
write="admins,producers" admin="admins,producers,consumers" />
            </authorizationEntries>
          </authorizationMap>
        </map>
      </authorizationPlugin>
    </plugins>

Here's a seperate thread explaining how to configure the web console to use
basic authentication.

http://www.nabble.com/Securing-the-web-console-impossible--tt16765525.html#a16784476
-- 
View this message in context: http://www.nabble.com/Dynamically-setting-activemq-username-password-when-logging-into-web-console-tp26118677p26118677.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message