javawebsphereibm-mqspring-jms

I can't connect to QM of IBM MQ ERROR 2035 MQRC_NOT_AUTHORIZED


i have 2 QMs first is for testing and the second for real working and they have same properties, and the client, which can connect to those QMs. The problem is that i can't connect to the second one. it shows error :

  2035 MQRC_NOT_AUTHORIZED

Most answers of the problem is that to change some settings on the server side of QM, but what i can to do if i dont have any access to the server of QM?

I mean that i have only client at all. Also i know that QM is working good with another client with the same credentials.

I have no idea to solve this problem with no access to the server side.


Solution

  • I faced the same problem on a just installed IBM MQ server on Linux Ubuntu(only one local queue manager). It was not production. One of the way to solve the problem is to disable the security (not to do in production).

    ALTER QMGR CHLAUTH(DISABLED)
    

    It is a command you run on the server.

    Please read queue manager RC 2035 MQRC_NOT_AUTHORIZED More specifically paragraph 2.c.

    Disable the Channel Authentication Records feature

    ALTER QMGR CHLAUTH(DISABLED)

    WARNING: Disabling this new feature is not recommended for MQ 7.1 production queue managers due to security implications. Note that disabling CHLAUTH results in a policy that accepts administrative connections by default. The administrative effort to lock down administrative access with CHLAUTH(DISABLED) is much greater than to do so with CHLAUTH(ENABLED). It is therefore recommended to leave CHLAUTH(ENABLED) and use the other security features of WebSphere MQ V7.1 to authenticate administrator connections.