> Yes we connect to Mq using mqm username and password.Not to be harsh, but that is a bad, bad idea. Nobody should be connecting to a remote queue manager with mqm credentials not even MQAdmins!!! If you want "mqm" privileges then have your UserId put into the mqm group.
Now to your problem.
- MQ Explorer is a Java application which has different security privileges related to the UserId.
- RfhUtilc is a C++ (i.e. native) application . All native applications have restricted security privileges as it relates to the UserId.
Yes, I know that sounds weird but it is true.
So, it sounds like you have CONNAUTH enabled which is good.
(1) When you send your credentials to MQ, it is done using the MQCSP structure for all types of applications.
(2) Your local UserId is also sent to the queue manager in a field called RemoteUserId.
So, lets say your local UserId that you are logged into Windows with is "surbhi".
- When you use MQ Explorer to connect to the remote queue manager using the mqm credentials, MQ Explorer sets those values in the MQCSP structure and sets the RemoteUserId to be "mqm" when making the connection.
- When you use RfhUtilc (client version) to connect to the remote queue manager using the mqm credentials, RfhUtilc sets those values in the MQCSP structure and the MQ Client library (not RfhUtilc) sets the RemoteUserId to be "surbhi" when making the connection.
Therefore, while "mqm" will have permission to everything, I'm going to guess that UserId "surbhi" does not have permission, hence, that is why you are getting 2035 (not authorized) reason code.
You could ask your MQAdmin to use the "AdoptCTX" option to force the queue manager to use the UserId from the MQCSP structure for future permission checks. You can read more about it here:
-
https://www.ibm.com/docs/en/ibm-mq/latest?topic=users-identifying-authenticating-using-mqcsp-structure-
https://www.ibm.com/docs/en/ibm-mq/latest?topic=authentication-connection-configurationHope that helps.
later
Roger
------------------------------
Roger Lacroix
CTO
Capitalware Inc.
London ON Canada
https://capitalware.com------------------------------
Original Message:
Sent: Tue May 24, 2022 06:54 AM
From: Surbhi Arora
Subject: Fetching queues using rfhutilc
Even after entering specific queue it wasn't working.
Original Message:
Sent: 5/24/2022 6:35:00 AM
From: om prakash
Subject: RE: Fetching queues using rfhutilc
Try entering a specific queue and connect; is that working?
------------------------------
om prakash
WI
Original Message:
Sent: Mon May 23, 2022 11:02 AM
From: Surbhi Arora
Subject: Fetching queues using rfhutilc
Hi All,
I am facing issue(Error Getting queues) while loading queues with rfhutilc,I am passing valid connection string,awith same connection string i can connect to Mq explorer but can't load queues on rfhutilc.
Can someone please help me.
Regards,