3 Replies Latest reply on Aug 1, 2005 11:36 AM by Denis

    JBossMQ & Login Module Configuration

    Denis Newbie

      By default JBossMQ uses DatabaseServerLoginModule login module. I try to change it to UsersRolesLoginModule (i crete users. roles. prop files). But on run-time i have message:
      "user:null not authorised.."

        • 1. Re: JBossMQ & Login Module Configuration
          Michael Caughey Newbie

          It helps if you send along the configuration files you modified.

          • 2. Re: JBossMQ & Login Module Configuration
            Ulf Schroeter Novice

            This might be an indication that a JMS user hasn't specified user/pwd credentials (e.g. simply calling getTopicConnection() instead of getTopicConnection(user,pwd)). Try to identify the causing consumer/producer and check if he's providing propper credentials.

            Regards
            Ulf

            • 3. Re: JBossMQ & Login Module Configuration
              Denis Newbie

              I modified only login-config.xml by replacing existing application-policy with name="jbossmq" to:
              <application-policy name = "jbossmq">

              <login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule"
              flag = "required">
              <module-option name="usersProperties">web-users.properties</module-option>
              <module-option name="rolesProperties">web-roles.properties</module-option>
              </login-module>

              </application-policy>

              An exception appears during ear deployment

              18:14:58,030 ERROR [DLQHandler] Initialization failed DLQHandler
              javax.jms.JMSSecurityException: User: null is NOT authenticated
              at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:215)
              at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecurityInterceptor.java:51)
              at org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.java:781)
              at org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.java:287)
              at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:204)
              at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:369)
              at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377)
              at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
              at java.lang.Thread.run(Thread.java:534)
              18:14:58,030 INFO [STDOUT] 461257 [JMSContainerInvoker(NotificationAggregationServerMDB) Reconnect] ERROR org.jboss.ejb
              .plugins.jms.DLQHandler DLQHandler - Initialization failed DLQHandler
              javax.jms.JMSSecurityException: User: null is NOT authenticated
              at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:215)
              at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecurityInterceptor.java:51)
              at org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.java:781)
              at org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.java:287)
              at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:204)
              at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:369)
              at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377)
              at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
              at java.lang.Thread.run(Thread.java:534)
              18:14:58,030 INFO [STDOUT] 461257 [UIL2.SocketManager.WriteTask#143 client=10.6.4.20:8093] DEBUG org.jboss.mq.il.uil2.S
              ocketManager - End WriteTask.run