|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
![Reply to topic](templates/DAJ_Glass/images/lang_english/reply.gif) |
|
.NET Client ID Connection to MQ |
« View previous topic :: View next topic » |
Author |
Message
|
hollams |
Posted: Thu Feb 29, 2024 8:58 am Post subject: .NET Client ID Connection to MQ |
|
|
Newbie
Joined: 29 Feb 2024 Posts: 1
|
We have a .NET client who is connecting to zos MQ with a userid that is not in RACF. We tried creating a channel auth record using the Client User ID but apparently we aren't matching the names correctly. We are using all lowercase letters.
We then created an auth record just using the IP address and the connection worked. Displaying the connection doesn't show the Client ID as I guess it's not supported on zOS.
Is there another way to see what the Client User ID is? The RACF message cut off the userid at 8 characters. We got the full name from the Application team but that didn't work either. |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
gbaddeley |
Posted: Thu Feb 29, 2024 1:28 pm Post subject: |
|
|
![](images/avatars/gallery/Star Wars/movie_star_wars_yoda.gif) Jedi
Joined: 25 Mar 2003 Posts: 2495 Location: Melbourne, Australia
|
While a connection is running, try displaying the channel status, and look at MCAUSER.
Try putting a message, and look at the MQMD UserIdentifier in the message. _________________ Glenn |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
fjb_saper |
Posted: Fri Mar 01, 2024 11:51 pm Post subject: Re: .NET Client ID Connection to MQ |
|
|
![](images/avatars/gallery/misc/2.gif) Grand High Poobah
Joined: 18 Nov 2003 Posts: 20696 Location: LI,NY
|
hollams wrote: |
We have a .NET client who is connecting to zos MQ with a userid that is not in RACF. We tried creating a channel auth record using the Client User ID but apparently we aren't matching the names correctly. We are using all lowercase letters.
We then created an auth record just using the IP address and the connection worked. Displaying the connection doesn't show the Client ID as I guess it's not supported on zOS.
Is there another way to see what the Client User ID is? The RACF message cut off the userid at 8 characters. We got the full name from the Application team but that didn't work either. |
Depending on the client version (9.2.x) the userid running the client program will be truncated at 12 chars when running in distributed. To avoid this behavior and get the full userid the client MUST use the use_MQCSP_authentication. This can be set in the mqclient.ini for java programs... (JMQI stanza)...
Once you know what the client userid will look like, you can proxy it with the chlauth record.
One of the problems we had on distributed is that the client could never provide the correct password and as such either get proxied or connect. Turned out that the userid was getting truncated and as such userid and password could not match at authentication... Using the MQCSP structure for passing userid and password solved that problem...
Hope it helps some ![](images/smiles/innocent.gif) _________________ MQ & Broker admin |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
hughson |
Posted: Sat Mar 02, 2024 7:12 pm Post subject: |
|
|
![](images/avatars/810794940518bb946528b3.jpg) Padawan
Joined: 09 May 2013 Posts: 1916 Location: Bay of Plenty, New Zealand
|
Block the connection by not having a CHLAUTH rule for it in place and then view the queue manager error message which will show you the CLNTUSER that was presented.
See this blog post for an example.
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
|
|
![Reply to topic](templates/DAJ_Glass/images/lang_english/reply.gif) |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|