ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexGeneral IBM MQ SupportLost with mqccred channel exit

Post new topicReply to topic
Lost with mqccred channel exit View previous topic :: View next topic
Author Message
Heba_MQ
PostPosted: Sun Jul 19, 2020 10:49 am Post subject: Lost with mqccred channel exit Reply with quote

Apprentice

Joined: 19 Apr 2020
Posts: 27

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
View user's profile Send private message
hughson
PostPosted: Sun Jul 19, 2020 8:53 pm Post subject: Re: Lost with mqccred channel exit Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1504
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
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Mon Jul 20, 2020 5:32 am Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20394
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
View user's profile Send private message Send e-mail
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexGeneral IBM MQ SupportLost with mqccred channel exit
Jump to:



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
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.