activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lancedv <lance_dev...@yahoo.com>
Subject Re: jaas security
Date Fri, 26 Oct 2007 06:19:09 GMT

Hi Joe,

Yup it solved that problem but im now gettin these errors:

javax.jms.JMSException: User name or password is invalid.
        at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)


Caused by: java.lang.SecurityException: User name or password is invalid.
        at
org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:83)


Caused by: javax.security.auth.login.LoginException:
java.lang.NullPointerException
        at java.util.Hashtable.get(Hashtable.java:334)

It can find these files login.config, users.properties and groups.properties
but i noticed that one of the errors contain a nullpointerexception, what am
i missing?

Im assuming you had tried Jaas before or maybe still using it right now, how
did you do it?

Thanks very much

Jan

ttmdev wrote:
> 
> 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#a13421459
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message