Open mohammadrsh opened 11 months ago
"worker" will be the userid associated with the channel before authentication is done.
You'd need to look at the MCAUSER setting on the channel, which userid is actually executing the qmgr processes, which userid is executing the client program, and any CHLAUTH rules that might have been defined to map userids. there's no way of telling from here what precisely might have applied that identity.
Thanks for the reply, Here is the CHLAUTH config:
CHLAUTH Rules:
CHLAUTH(SC.CLIENT) TYPE(USERMAP)
ADDRESS(100.127.130.*) CLNTUSER(admin)
MCAUSER(mqm)
Chl Config:
CHANNEL(SC.CLIENT) CHLTYPE(SVRCONN)
ALTDATE(2023-08-18) ALTTIME(11.26.43)
CERTLABL( ) COMPHDR(NONE)
COMPMSG(NONE) DESCR( )
DISCINT(0) HBINT(300)
KAINT(AUTO) MAXINST(999999999)
MAXINSTC(999999999) MAXMSGL(4194304)
MCAUSER( ) MONCHL(QMGR)
RCVDATA( ) RCVEXIT( )
SCYDATA( ) SCYEXIT( )
SENDDATA( ) SENDEXIT( )
SHARECNV(10) SSLCAUTH(REQUIRED)
SSLCIPH( ) SSLPEER( )
TRPTYPE(TCP)
Connauth:
QMNAME(QM1)
CONNAUTH(SYSTEM.DEFAULT.AUTHINFO.IDPWOS)
Authinfo:
AUTHINFO(SYSTEM.DEFAULT.AUTHINFO.IDPWOS)
AUTHTYPE(IDPWOS) ADOPTCTX(YES)
DESCR( ) CHCKCLNT(NONE)
CHCKLOCL(OPTIONAL) FAILDLAY(1)
AUTHENMD(OS) ALTDATE(2023-12-14)
ALTTIME(13.12.56)
Is the issue related to this config?
MQ isn't inventing the "worker" ID. It must be coming from something running in your environment. Your AUTHINFO rule has "NONE" for CHCKCLNT so any userid/password is being ignored.
Have you got Authorisation Events enabled on the qmgr? Those events can give a lot more information than error log entries.
Thanks, Is there a way to debug mqQueueConnectionFactory properties before it tries to authenticate? I tried this:
val map = mqQueueConnectionFactory.keys.associateWith { mqQueueConnectionFactory[it] }.toSortedMap()
map.forEach { entry ->
logger.info("JMS config: ${entry.key} : ${entry.value}")
}
And I didn't see any user 'worker', It is also not a default value or configured anywhere in the project.
Hello, I am using this implementation in our JmsConfig file:
Every property is set correctly from application.yml, the issue I have is that the connectionFactory trying to connect with a different user in the header as I see in the log here:
I don't know from where we see this user 'worker' in the header, the only user we use in config file is admin. Can you help with that to see if it's a client issue or related to CHLAUTH rules on IBM MQ Server.