[jboss-user] [JBoss Web Services] - Security domain for JMS authentication is blacklisted when implementation is in EAR

Martin Hynar do-not-reply at jboss.com
Thu Jan 6 04:49:43 EST 2011

Martin Hynar [http://community.jboss.org/people/martin.hynar] created the discussion

"Security domain for JMS authentication is blacklisted when implementation is in EAR"

To view the discussion, visit: http://community.jboss.org/message/579220#579220

Hello everyone,

there is an interresting problem with security domain used to authenticate users connecting to JMS resources. The thing is that, there is custom implementation of authentication module (more constraints required) and a configuration of login-module that references this implementation.

<application-policy name="CustomSecurityDomain">
    <login-module code="custom.authentication.LoginModule" flag="required">
      <!-- some module options ... -->

The class custom.authentication.LoginModule sits within EAR. Then this authentication module is configured to be used by JMS authentication:

<bean name="SecurityStore" class="org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore">
  <!-- default security configuration -->
  <property name="defaultSecurityConfig">
         <role name="jmsrole" read="true" write="true" create="true"/>

  <property name="securityDomain">CustomSecurityDomain</property>
  <property name="securityManagement"><inject bean="JNDIBasedSecurityManagement"/></property>

  <!-- @JMX annotation to export the management view of this bean -->

  <!-- Password Annotation to inject the password from the common password utility -->

With this setup, the authentication always fails and by debugging (I probably have wrong logging levels set) it is known that CustomSecurityDomain is on blacklist. When the custom.authentication.LoginModule is separated into separate jar and deployed on its own, then everything (authentication) work just fine, but then there are different reasons that prevent usage of this setup. Did somebody faced problem like this? Any solution or advice is welcome!

thanks, Martin

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110106/24d01907/attachment.html 

More information about the jboss-user mailing list