activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hett <hett...@gmail.com>
Subject Re: How to create read only topic?
Date Mon, 04 Mar 2013 17:40:20 GMT
I coping from tutorial config section:

	    <plugins>
			<simpleAuthenticationPlugin anonymousAccessAllowed="true">
				<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="TEST.Q" read="users" write="users"
admin="users" />
						 <authorizationEntry topic="ActiveMQ.Advisory.>" read="all"
write="all" admin="all"/>
					   </authorizationEntries>
					   <tempDestinationAuthorizationEntry>
						 <tempDestinationAuthorizationEntry read="admin" write="admin"
admin="admin"/>
					   </tempDestinationAuthorizationEntry>
					</authorizationMap>
		 	    </map>
		    </authorizationPlugin>
	    </plugins>
tabish121@gmail.com wrote
> and on trying to connect:
> 
> $stomp = new Stomp('tcp://localhost:61613/stomp');
> 
> $stomp->connect('system', 'manager');
> $stomp->subscribe('/topic/test');
> 
> i have exception:
> 
> Fatal error: Uncaught exception 'StompException' with message 'User system
> is not authorized to create: topic://ActiveMQ.Advisory.Connection'
> 
> what am I doing wrong?
> 
> 
> 
> On 03/04/2013 10:50 AM, Hett wrote:
>> Hi,
>> how I to create read only for all users websocket topiK? I a need for
>> write
>> only from my PHP service.
>> Sorry for my english.
>>
>>
>>
>> --
>> View this message in context:
>> http://activemq.2283324.n4.nabble.com/How-to-create-read-only-topic-tp4664354.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
> 
> Use the security model to limit what a user can do, see:
> http://activemq.apache.org/security.html
> 
> -- 
> Tim Bish
> Sr Software Engineer | RedHat Inc.

> tim.bish@

>  | www.fusesource.com | www.redhat.com
> skype: tabish121 | twitter: @tabish121
> blog: http://timbish.blogspot.com/





--
View this message in context: http://activemq.2283324.n4.nabble.com/How-to-create-read-only-topic-tp4664354p4664364.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message