activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rousseau <steve.co...@excite.com>
Subject Re: Help with SimpleAuthenticationPlugin
Date Fri, 19 Jan 2007 09:45:59 GMT

I have the same issue. Does anyone have a complete example XML configuration
file for Simple authentication (not using JAAS or anything else)?

My XML file is something like:
    <plugins>
      <!--  simple user/password configuration -->
    <simpleAuthenticationPlugin>
	<userGroups>
	<property name="user" value="users"/>
	</userGroups>

	<userPasswords>
	<property name="user" value = "password"/>
	</userPasswords>

    </simpleAuthenticationPlugin>

      <!--  lets configure a destination based authorization mechanism -->
      <authorizationPlugin>
        <map>
          <authorizationMap>
            <authorizationEntries>


	      <!--  only allow access to authorised users -->
              <authorizationEntry queue=">" read="users" write="users"
admin="users" />              
              <authorizationEntry topic=">" read="users" write="users"
admin="users" />
              
            </authorizationEntries>
          </authorizationMap>
        </map>
      </authorizationPlugin>

    </plugins>


But i get errors...
ERROR: java.lang.RuntimeException: Failed to execute start task. Reason:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.activemq.security.AuthorizationEntry' defined in class
path resource [activemq.xml]: Error setting property values; nested
exception is org.springframework.beans.PropertyAccessExceptionsException:
PropertyAccessExceptionsException (3 errors); nested
propertyAccessExceptions are:
[org.springframework.beans.MethodInvocationException: Property 'admin' threw
exception; nested exception is java.lang.NoClassDefFoundError:
org/apache/activemq/jaas/GroupPrincipal],
[org.springframework.beans.MethodInvocationException: Property 'read' threw
exception; nested exception is java.lang.NoClassDefFoundError:
org/apache/activemq/jaas/GroupPrincipal],
[org.springframework.beans.MethodInvocationException: Property 'write' threw
exception; nested exception is java.lang.NoClassDefFoundError:
org/apache/activemq/jaas/GroupPrincipal]
java.lang.RuntimeException: Failed to execute start task. Reason:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.activemq.security.AuthorizationEntry' defined in class
path resource [activemq.xml]: Error setting property values; nested
exception is org.springframework.beans.PropertyAccessExceptionsException:
PropertyAccessExceptionsException (3 errors); nested
propertyAccessExceptions are:
[org.springframework.beans.MethodInvocationException: Property 'admin' threw
exception; nested exception is java.lang.NoClassDefFoundError:
org/apache/activemq/jaas/GroupPrincipal],
[org.springframework.beans.MethodInvocationException: Property 'read' threw
exception; nested exception is java.lang.NoClassDefFoundError:
org/apache/activemq/jaas/Group etc .

I'm using AMQ 4.0.2.

cheers
/Steve



nazgul wrote:
> 
> Hi Dietrich,
> 
> Thanks for your example and explanations, it's helpful for sure :)
> I'll try to use your method in my broker and I'll inform the results
> later.
> 

-- 
View this message in context: http://www.nabble.com/Help-with-SimpleAuthenticationPlugin-tf1697796.html#a8446342
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message