mq-golang icon indicating copy to clipboard operation
mq-golang copied to clipboard

How can I map the MCAUserIdentifier ?

Open KoljaKrueckmeyer opened this issue 1 year ago • 4 comments

I am running this lib in a openshift container envvironment (with a random user id) and I need to set the MCAUserIdentifier programmatically. Unfortunaltely this is not allowed by the API. How can I achieve or overcome this issue? image

KoljaKrueckmeyer avatar Sep 19 '24 08:09 KoljaKrueckmeyer

Getting a connection assoociated with a userid would normally be done with the MQCSP userid/password authentication. And then have the qmgr appropriately configured.

Or using a CHLAUTH rule to map inbound userids/certificates.

ibmmqmet avatar Sep 19 '24 11:09 ibmmqmet

I tried this way but the user id of the container is being used image image

What I am doing wrong?

KoljaKrueckmeyer avatar Sep 19 '24 14:09 KoljaKrueckmeyer

Probably the AUTHINFO rule in place on the qmgr needs ADOPTCTX(yes). But that's all outside the sope of this package - there are a number of considerations for setting up authorisation and authentication on the qmgr, which can also be different between regular and container environments.

ibmmqmet avatar Sep 19 '24 15:09 ibmmqmet

Got it. It worked after setting up an OS user for this. This cannot be used in conjunction with a Client Autentication Record to map this Client User Id to another OS user, right ?

KoljaKrueckmeyer avatar Sep 19 '24 15:09 KoljaKrueckmeyer