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 IndexIBM MQ SecurityMCAUSER in CHLAUTH ignored ?

Post new topicReply to topic
MCAUSER in CHLAUTH ignored ? View previous topic :: View next topic
Author Message
crashdog
PostPosted: Sun Apr 02, 2017 12:45 am Post subject: MCAUSER in CHLAUTH ignored ? Reply with quote

Newbie

Joined: 02 Apr 2017
Posts: 2
Location: Schaffhausen

Hello,
i've setup an SVRCONN channel to which a JMS application is connecting.
Now, if I set the MCAUSER in the channel definition, I see in the channel status that the according MCAUser is set. If I clear the MCAUser in the channel definition and try to map it with CHLAUTH SSLPEERMAP the MCAUser in the CHLAUTH apprears to be ignored. I'm using MQ 8005 developer edition.

Explanation: the MCAUser "bankapp2" is in the group "bank2" which has BROWSE, GET and INQ rights on the BANK.APPID.INPUT queue.
The user "gery" is in the mqm/Admin group and can put msg's as well. Which it can eventhough there's the CHLAUTH mapping from CN=gery to bankapp2.
Code:

dis authrec profile(BANK.APPID.INPUT)
AMQ8864: Display authority record details.
   PROFILE(BANK.APPID.INPUT)           ENTITY(bank2)
   ENTTYPE(GROUP)                          OBJTYPE(QUEUE)
   AUTHLIST(BROWSE,GET,INQ)             

dis chlauth(JAVA.SUN.CLIENT)
     5 : dis chlauth(JAVA.SUN.CLIENT)
AMQ8878: Display channel authentication record details.
   CHLAUTH(JAVA.SUN.CLIENT)                TYPE(SSLPEERMAP)
   DESCR( )                                CUSTOM( )
   SSLPEER(CN=gery)                        SSLCERTI( )
   ADDRESS( )                              MCAUSER(bankapp2)
   USERSRC(MAP)                            CHCKCLNT(ASQMGR)
   ALTDATE(2017-04-01)                     ALTTIME(20.05.25)

dis chl(JAVA.SUN.CLIENT)
     7 : dis chl(JAVA.SUN.CLIENT)
AMQ8414: Display Channel details.
   CHANNEL(JAVA.SUN.CLIENT)                CHLTYPE(SVRCONN)
   ALTDATE(2017-04-02)                     ALTTIME(10.09.18)
   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(TLS_RSA_WITH_3DES_EDE_CBC_SHA)
   SSLPEER( )                              TRPTYPE(TCP)

dis chs(JAVA.SUN.CLIENT) all
     4 : dis chs(JAVA.SUN.CLIENT) all
AMQ8417: Display Channel Status details.
   CHANNEL(JAVA.SUN.CLIENT)                CHLTYPE(SVRCONN)
   BUFSRCVD(2686)                          BUFSSENT(2682)
   BYTSRCVD(173768)                        BYTSSENT(899492)
   CHSTADA(2017-04-02)                     CHSTATI(10.10.34)
   COMPHDR(NONE,NONE)                      COMPMSG(NONE,NONE)
   COMPRATE(0,0)                           COMPTIME(0,0)
   CONNAME(192.168.189.1)                  CURRENT
   EXITTIME(0,0)                           HBINT(300)
   JOBNAME(00001EEE00000004)           
   LOCLADDR(::ffff:192.168.189.138(2525))
   LSTMSGDA(2017-04-02)                    LSTMSGTI(10.11.07)
   MCASTAT(RUNNING)                        MCAUSER(gery)
   MONCHL(OFF)                             MSGS(2680)
   RAPPLTAG(Mqclientssl)                   SECPROT(TLSV1)
   SSLCERTI(CN=gery)                       SSLKEYDA( )
   SSLKEYTI( )                         
   SSLPEER(SERIALNUMBER=50:36:08:00,CN=gery)
   SSLRKEYS(0)                             STATUS(RUNNING)
   STOPREQ(NO)                             SUBSTATE(MQICALL)
   CURSHCNV(2)                             MAXSHCNV(10)
   RVERSION(08000002)                      RPRODUCT(MQJM)


Should I see the MCAUser that is set in the CHLAUTH when displaying the channel status ?

Kind Regards,

Gery
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Sun Apr 02, 2017 5:05 am Post subject: Reply with quote

Jedi Council

Joined: 15 May 2001
Posts: 7346

Start by confirming CHLAUTH is enabled at the Queue Manager level.

A suggestion: Don't leave the MCAUSER blank on the channel definition. Put something like "SetByCHLAUTH" in there. It makes it clearer as to your intentions, and the setup defaults to a guaranteed failed connection (MQRC 2035 for User "SetByCHLAUTH") rather than a potential successful one should your map rule not work as intended.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
crashdog
PostPosted: Sun Apr 02, 2017 8:14 am Post subject: Reply with quote

Newbie

Joined: 02 Apr 2017
Posts: 2
Location: Schaffhausen

Hello Peter,
thank you for the quick respons. Off course you where right. Once enabled everything works as expected. I will try your suggestion on setting the MCAUser as well. I see that it now has an asterisk when displaying the status.

Kind Regards,
Gery
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ SecurityMCAUSER in CHLAUTH ignored ?
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.