authorization - Spaces in ActiveMQ AuthorizationEntry Group Names -


i trying use jaasauthenticationplugin authenticate users trying access specific queues. (most of code based off of examples given in activemq in action)

ultimately, want authenticate against active directory server, may have groups spaces in names, when attempt use groups spaces in names, run problems. have far:

login.config:

activemq-domain { org.apache.activemq.jaas.propertiesloginmodule required     debug=true     org.apache.activemq.jaas.properties.user="users.properties"     org.apache.activemq.jaas.properties.group="groups.properties"; }; 

users.properties:

user=password 

group.properties:

users=user users group=user 

activemq.xml:

    <plugins>            <jaasauthenticationplugin configuration="activemq-domain" />         <authorizationplugin>             <map>             <authorizationmap>                 <authorizationentries>                     <authorizationentry queue=">"                                             read="users"                                             write="users"                                             admin="users" />                 <authorizationentry topic=">"                                             read="users"                                             write="users"                                             admin="users" />                                                              </authorizationentries>             </authorizationmap>             </map>         </authorizationplugin>     </plugins> 

this works fine, try use "users group" instead of "users", get:

javax.jms.jmsexception: user user not authorized create: topic://activemq.advisory.connection 

are group names spaces unsupported activemq or jaas? need escape spaces somehow?

try escaping space

change:

users group=user 

to:

users\ group=user 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -