[jboss-user] [JBoss Messaging] - Re: Problem with user authorization using JBM Bridge configu
armsargis
do-not-reply at jboss.com
Thu Apr 9 05:28:15 EDT 2009
Sorry I should provide info about JBoss before here is my version:
11:18:45,872 INFO [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902232048)] Started in 44s:525ms
I just copy default server configuration and I am using:
oracle-persistence-service.xml just and just change in DataSource. Please not I have not problem when I am working locally without bridging.
and here is my security config:
<!-- messaging application-policy definition -->
| <application-policy xmlns="urn:jboss:security-beans:1.0" name="messaging">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
| <module-option name="unauthenticatedIdentity">guest</module-option>
| <module-option name="dsJndiName">java:/FormMJMSDS</module-option>
| <module-option name="principalsQuery">SELECT PASSWD FROM JBM_USER WHERE USER_ID=?</module-option>
| <module-option name="rolesQuery">SELECT ROLE_ID, 'Roles' FROM JBM_ROLE WHERE USER_ID=?</module-option>
| </login-module>
| </authentication>
| </application-policy>
|
| <bean name="SecurityStore" class="org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore">
| <!-- default security configuration -->
| <property name="defaultSecurityConfig">
| <![CDATA[
| <security>
| <role name="guest" read="true" write="true" create="true"/>
| </security>
| ]]>
| </property>
| <property name="suckerPassword">CHANGE ME!!</property>
| <property name="securityDomain">java:/jaas/messaging</property>
| <property name="securityManagement"><inject bean="JNDIBasedSecurityManagement"/></property>
| <!-- @JMX annotation to export the management view of this bean -->
| <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.messaging:service=SecurityStore",exposedInterface=org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStoreMBean.class)</annotation>
| </bean>
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224598#4224598
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224598
More information about the jboss-user
mailing list