Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error '2035' ('MQRC_NOT_AUTHORIZED') While Connecting to MQ

Tags:

asp.net

ibm-mq

I am getting this error while connecting to IBM MQ. I know that this is because of privileges, but is there any way just to check the connection with IBM MQ?

Please suggest.

like image 250
Sreenath G V Avatar asked Feb 24 '11 07:02

Sreenath G V


People also ask

How to resolve MQ error 2035?

Corrective action: Use the setmqaut (set or reset authority) command, to grant access to WebSphere MQ objects. You will then need to restart the queue manager to refresh the security cache, or via runmqsc run "REFRESH SECURITY(*)" to do the same. In some cases you may want to make the user a member of the "mqm" group.

How do I test my MQ connection?

To test a IBM MQ Connection From the Object Repository tab of the Management Console, navigate to the relevant queue manager, right-click and select Test Middleware Administrator IBM MQ Connection.


2 Answers

The 2035 suggests that your connection is getting to the QMgr. If you had the wrong channel name, host or port you would get back a 2059. The 2035 means that the connection made it to the listener, found a channel of the name that was requested and attempted a connection.

If you want to test past this point it will be necessary to either authorize the ID that you are using to connect or to put an authorized ID in the MCAUSER attribute of the channel.

For a detailed explanation of how the WMQ security works on client channels, see the WMQ Base Hardening presentation at http://t-rob.net/links.

like image 151
T.Rob Avatar answered Oct 03 '22 21:10

T.Rob


If you enable authorization messages then the 2035 will show up in the event queue. Then you can look at the message and see what ID was used to connect and what options were used too. The 2035 might be because you asked for set authority on the queue manager or something else you aren't supposed to have. The authorization messages wil show you that.

like image 5
mqrus Avatar answered Oct 01 '22 21:10

mqrus