I am accessing an MQ8 server using HermesJms.
The latter has the following configuration:
However, when I am trying to "Discover" via the relevant option provided by Hermes, I get an 2035
with the following message appearing on the queue manager error logs:
AMQ9557: Queue Manager User ID initialization failed for 'pkaramol'.
EXPLANATION:
The call to initialize the User ID 'pkaramol' failed with CompCode 2 and Reason
2035.
Note that pkaramol
is my local OS user I am logged in as, in the linux machine running Hermes.
Questions:
1) Why I get the following error despite the fact that I have disabled both CHLAUTH
and CONNAUTH
:
ALTER QMGR CHLAUTH(DISABLED) CONNAUTH(' ')
REFRESH SECURITY TYPE(CONNAUTH)
2) Why is the server perceiving pkaramol
as the user trying to access the queue manager, although I am explicitly providing mquser
in both ClientID
and user
fields of HermesJMS?
I cannot find much documentation on HermesJMS, but through some trial and error I found out that it does not honor the
User
andPassword
settings if you click Discover, it will always send the user you are logged in as to the queue manager, this is why you do not see the usermquser
. Because you are running it as the userpkaramol
which does not exist on the server where your queue manager is running you receive the following error:I also found that to perform the discover it opens a temporary dynamic queue using the model queue
SYSTEM.DEFAULT.MODEL.QUEUE
and puts PCF messages to theSYSTEM.ADMIN.COMMAND.QUEUE
. In addition for it to discover any queue details you must have at minimum+inq
and+dsp
on the queues.In your comment you stated you added the user
pkaramol
to the server and put it in themqm
group. While this is a quick way to get this to work, it does provide that user full MQ Admin access. You could provide your actual user with the following permissions and still be able to Discover all of the objects on the queue manager. Please replace the wordgroup
below with a group your user is a member of on the server:I also noted that once you have queues populated either through Discover or manually adding them, it will use the User that you specified.
Note that with
CHLAUTH
andCONNAUTH
disabled the queue manager is taking whatever user is presented and using it. You could leaveCONNAUTH
enabled and specify a valid user and password and MQ would authenticate it.Another option since Discover does not honor the User setting would be to set a
MCAUSER
on the SVRCONN channel ofmquser
.