activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ttmdev <joe.fernan...@ttmsolutions.com>
Subject Re: jaas security
Date Thu, 25 Oct 2007 14:19:30 GMT

Clear out your brokers data directory (i.e., ../activemq-data/<broker-name>).

I believe the exception is being hurled because there is a destination in
the data directory that was previously created w/out the security
credentials that you're now trying to use.

I was getting the same exception and clearing out my brokers data directory
took care of the exception.   

Joe 
 

lancedv wrote:
> 
> Hi Tom
> 
> Thanks for taking time to help me out. Here's a snippet of my config:
> 
> <plugins>
>     <!--
> 
>    <jaasAuthenticationPlugin configuration="activemq-domain"/>
>    -->
>     <simpleAuthenticationPlugin>
>         <users>
>                 <authenticationUser username="system" password="manager"
>                         groups="users,admins"/>
>                 <authenticationUser username="user" password="password"
>                         groups="users"/>
>                 <authenticationUser username="guest" password="password"
> groups="guests"/>
>         </users>
>     </simpleAuthenticationPlugin>
> 
>     <authorizationPlugin>
>         <map>
>         <authorizationMap>
>           <authorizationEntries>
>              <authorizationEntry queue=">" read="admins" write="admins"
> admin="admins"/>
>              <authorizationEntry topic=">" read="admins" write="admins"
> admin="admins"/>
>            <!--  <authorizationEntry topic="sms.>" read="users"
> write="users" admin="users"/> -->
>           </authorizationEntries>
> 
> 
>           <tempDestinationAuthorizationEntry>
>               <tempDestinationAuthorizationEntry
> read="tempDestinationAdmins" write="tempDestinationAdmins"
> admin="tempDestinationAdmins"/>
>            </tempDestinationAuthorizationEntry>
> 
> 
>         </authorizationMap>
>        </map>
>    </authorizationPlugin>
> 
>   </plugins>
> 
> Im playin around with Jaas and simple plugins but had no success so far. I
> checked the source and it seems im getting this error because of null
> securitycontext being returned by getsecuritycontext method. My guess is
> almost the same as yours that it is trying to authenticate itself but
> where should i fix that?
> 
> 
> 
> 
> Tom Samplonius-2 wrote:
>> 
>> 
>> ----- "lancedv" <lance_devera@yahoo.com> wrote:
>>> Hi guys,
>>> 
>>> Im trying to use jaas in my activemq instance and have followed the
>>> instructions in the security page and some hints in this forum but im
>>> getting this error when starting activemq:
>>> 
>>> ERROR BrokerService                  - Failed to start ActiveMQ JMS
>>> Message
>>> Broker. Reason: java.lang.SecurityException: User is not
>>> authenticated.
>> ...
>>> 
>>> im using activemq snapshot 5 running on fedora 6.
>> 
>> 
>>   What does your config file look like?
>> 
>>   Unfortunately, I found there are certain things you can password
>> protect, and have other things work.  For instance, the management topic. 
>> It will fail to be created, as apparently ActiveMQ demands that ActiveMQ
>> use an admin password when connecting to itself.  It is a bit bizarre.
>> 
>> 
>>> Any help will be very much appreciated. Thanks
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/jaas-security-tf4682391s2354.html#a13380046
>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>> 
>> 
>> Tom
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/jaas-security-tf4682391s2354.html#a13407614
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message