|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Lost with mqccred channel exit |
« View previous topic :: View next topic » |
Author |
Message
|
Heba_MQ |
Posted: Sun Jul 19, 2020 10:49 am Post subject: Lost with mqccred channel exit |
|
|
Apprentice
Joined: 19 Apr 2020 Posts: 39
|
Dear All,
I have an MQ client on Windows that can not supply userid and password.
it will need to connect to QMGR on Linux machine with enabled security.
The Client is connecting using env var MQSERVER on windows
SET MQSERVER=CHAN1/tcp/10.1.2.3(1802)
Originally I searched for the mqccred.dll on the windows machine - and I can find in the below 4 locations:
D:\MQCLIENT\Data\exits\Installation1\mqccred.dll
D:\MQCLIENT\Data\exits64\Installation1\mqccred.dll
D:\MQCLIENT\Tools\c\Samples\mqccred\bin\mqccred.dll
D:\MQCLIENT\Tools\c\Samples\mqccred\bin64\mqccred.dll
Also, I searched for mqccred on the Linux machine and I can find in 2 locations:
/var/mqm/exits64/Installation1/mqccred_r
/var/mqm/exits64/Installation1/mqccred
Q1- Does it mean that I dont have to copy mqccred from client machine (windows) on windows to mq server on (linux) machine ?
Also, for the mqccred.ini - will be as below:
QueueManager:
Name=QM80A
User=mqdevclient
OPW=H&^dbgfh
Force=TRUE
What I understood is that I can put the ini file anywhere on the client machine - let us say in D:\MQCLIENT\mqccred and then set the below env var
set MQCCRED=D:\MQCLIENT\mqccred
Q2- is this correct ?
User mqdevclient should be created on the Linux machine - where the QMGR is running...
and I should add the appropriate authrecs to connect to the qmgr and to put and get messages with this userid...
Q3. is this correct ?
Thanks
Heba |
|
Back to top |
|
 |
hughson |
Posted: Sun Jul 19, 2020 8:53 pm Post subject: Re: Lost with mqccred channel exit |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
Heba_MQ wrote: |
Q1- Does it mean that I dont have to copy mqccred from client machine (windows) on windows to mq server on (linux) machine ? |
Correct - you don't (and shouldn't) copy mqccred from Windows to Linux. Two reasons - 1) It wouldn't work on Linux if it was a Windows version of the exit, and 2) you only need it to run on the CLIENT machine anyway.
Heba_MQ wrote: |
What I understood is that I can put the ini file anywhere on the client machine - let us say in D:\MQCLIENT\mqccred and then set the below env var
set MQCCRED=D:\MQCLIENT\mqccred
Q2- is this correct ? |
Correct. And remember to set the appropriate user access on this file.
Heba_MQ wrote: |
User mqdevclient should be created on the Linux machine - where the QMGR is running...
and I should add the appropriate authrecs to connect to the qmgr and to put and get messages with this userid...
Q3. is this correct ? |
Correct
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jul 20, 2020 5:32 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You should also set on Windows the environment variables to point to a CCDT:
mqchllib, mqchltab or mqccdturl, or set the corresponding entries in mqclient.ini file. Of course this means that you'll no longer use the MQServer variable.
The client channel definition table will have to show something like
Code: |
def chl(samename as svrconn) chltype(clntconn) conname('host(port)') qmname(QMNAME) SCYEXIT('mqccred(ChlExit)') |
You can test that everything works using amqscnxc QMNAME. _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
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
|
|
|
|