Discussion:
Cannot get CHLAUTH Client ID Mapping to work
Potkay, Peter M (CTO Architecture + Engineering)
2013-10-10 23:48:08 UTC
Permalink
My client is MQ 7.5.0.2 on a Windows 7 desktop.
The Queue Manager is MQ 7.5.0.2 on a RHEL 6.4 server.
CHLAUTH is enabled.

DISPLAY QMGR CHLAUTH CMDLEVEL
AMQ8408: Display Queue Manager details.
QMNAME(MYQM) CHLAUTH(ENABLED)
CMDLEVEL(750)


Here's the MQ Client channel I'm testing with on my Lab server.

DIS CHANNEL(PETER.TEST.1) ALL
AMQ8414: Display Channel details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
ALTDATE(2013-10-10) ALTTIME(18.51.26)
COMPHDR(NONE) COMPMSG(NONE)
DESCR( ) DISCINT(0)
HBINT(30) KAINT(AUTO)
MAXINST(999999999) MAXINSTC(999999999)
MAXMSGL(104857600) MCAUSER(BOGUS_ID_123)
MONCHL(QMGR) RCVDATA( )
RCVEXIT( ) SCYDATA( )
SCYEXIT( ) SENDDATA( )
SENDEXIT( ) SHARECNV(10)
SSLCAUTH(REQUIRED) SSLCIPH( )
SSLPEER( ) TRPTYPE(TCP)


And here is my CHLAUTH rule.

DISPLAY CHLAUTH (PETER.TEST.1) ALL
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
DESCR( ) CUSTOM( )
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123) USERSRC(MAP)
ALTDATE(2013-10-10) ALTTIME(18.58.23)



I am logged into my PC as pp12345. And every time I connect to this queue manager over the PETER.TEST.1 channel the ID the channel runs as is BOGUS_ID_123. MQRC 2035. Authority Event message shows BOGUS_ID_123. Why is the CHLAUTH rule not kicking in and changing the connection to run as abc123?

If I blank out the MCAUSER on the channel, then I connect as pp12345. I happen to have access to some queues on this QM as this pp12345 ID and I can open those queues. If I do a channel status it shows me running as pp12345, not abc123 (see below). If I try and open some other queues I don't have access to, MQRC 2035 and the Authority Event message shows the pp12345 ID. Again, why is the CHLAUTH rule not kicking in and changing my connection to abc123?

Nothing in the queue manager error logs.


display chstatus(PETER.TEST.1) all
AMQ8417: Display Channel Status details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
BUFSRCVD(9) BUFSSENT(8)
BYTSRCVD(1628) BYTSSENT(1444)
CHSTADA(2013-10-10) CHSTATI(19.42.48)
COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)
COMPRATE(0,0) COMPTIME(0,0)
CONNAME(10.147.130.226) CURRENT
EXITTIME(0,0) HBINT(30)
JOBNAME(0000B7EF00000F73) LOCLADDR(::ffff:99.111.222.99(1414))
LSTMSGDA(2013-10-10) LSTMSGTI(19.42.49)
MCASTAT(RUNNING) MCAUSER(pp12345)
MONCHL(LOW) MSGS(2)
RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)
SSLCERTI( ) SSLKEYDA( )
SSLKEYTI( ) SSLPEER( )
SSLRKEYS(0) STATUS(RUNNING)
STOPREQ(NO) SUBSTATE(RECEIVE)
CURSHCNV(1) MAXSHCNV(10)
RVERSION(07050002) RPRODUCT(MQCC)


Peter Potkay




************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Neil Casey
2013-10-11 00:36:12 UTC
Permalink
Hi Peter,

I don't know if this is the answer, but I suspect your problem is the CLNTUSER. MQ tries to be good about using as strong a value as it can, so on Windows, users are generally domain specific, and checked based on SID. So maybe the CLNTUSER value isn't able to match up with the SID of the supplied value on the connection, and so the CHLAUTH doesn't match up.

What happens if you leave everything else as is, but remove the CLNTUSER value?

Personally, I wouldn't use this as part of an authentication process anyway, because as far as I am concerned, any user id value presented from a client to MQ over a client channel is useless, because the client can just present any value (via the java api).

One thing I think you have highlighted though is that there needs to be enhanced message reporting that can be turned on to show the process that MQ goes through when assigning a user via CHLAUTH. At the moment, when it doesn't work as expected, the administrator is left in the dark.

Regards,


Neil Casey
mailto:Neil_Casey-8K57OPj+***@public.gmane.org mobile: +61 414 615 334










On 11/10/2013, at 10:48 AM, "Potkay, Peter M (CTO Architecture + Engineering)" <Peter.Potkay-***@public.gmane.org> wrote:

> My client is MQ 7.5.0.2 on a Windows 7 desktop.
> The Queue Manager is MQ 7.5.0.2 on a RHEL 6.4 server.
> CHLAUTH is enabled.
>
> DISPLAY QMGR CHLAUTH CMDLEVEL
> AMQ8408: Display Queue Manager details.
> QMNAME(MYQM) CHLAUTH(ENABLED)
> CMDLEVEL(750)
>
>
> Here’s the MQ Client channel I’m testing with on my Lab server.
>
> DIS CHANNEL(PETER.TEST.1) ALL
> AMQ8414: Display Channel details.
> CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
> ALTDATE(2013-10-10) ALTTIME(18.51.26)
> COMPHDR(NONE) COMPMSG(NONE)
> DESCR( ) DISCINT(0)
> HBINT(30) KAINT(AUTO)
> MAXINST(999999999) MAXINSTC(999999999)
> MAXMSGL(104857600) MCAUSER(BOGUS_ID_123)
> MONCHL(QMGR) RCVDATA( )
> RCVEXIT( ) SCYDATA( )
> SCYEXIT( ) SENDDATA( )
> SENDEXIT( ) SHARECNV(10)
> SSLCAUTH(REQUIRED) SSLCIPH( )
> SSLPEER( ) TRPTYPE(TCP)
>
>
> And here is my CHLAUTH rule.
>
> DISPLAY CHLAUTH (PETER.TEST.1) ALL
> AMQ8878: Display channel authentication record details.
> CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
> DESCR( ) CUSTOM( )
> ADDRESS( ) CLNTUSER(pp12345)
> MCAUSER(abc123) USERSRC(MAP)
> ALTDATE(2013-10-10) ALTTIME(18.58.23)
>
>
>
> I am logged into my PC as pp12345. And every time I connect to this queue manager over the PETER.TEST.1 channel the ID the channel runs as is BOGUS_ID_123. MQRC 2035. Authority Event message shows BOGUS_ID_123. Why is the CHLAUTH rule not kicking in and changing the connection to run as abc123?
>
> If I blank out the MCAUSER on the channel, then I connect as pp12345. I happen to have access to some queues on this QM as this pp12345 ID and I can open those queues. If I do a channel status it shows me running as pp12345, not abc123 (see below). If I try and open some other queues I don’t have access to, MQRC 2035 and the Authority Event message shows the pp12345 ID. Again, why is the CHLAUTH rule not kicking in and changing my connection to abc123?
>
> Nothing in the queue manager error logs.
>
>
> display chstatus(PETER.TEST.1) all
> AMQ8417: Display Channel Status details.
> CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
> BUFSRCVD(9) BUFSSENT(8)
> BYTSRCVD(1628) BYTSSENT(1444)
> CHSTADA(2013-10-10) CHSTATI(19.42.48)
> COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)
> COMPRATE(0,0) COMPTIME(0,0)
> CONNAME(10.147.130.226) CURRENT
> EXITTIME(0,0) HBINT(30)
> JOBNAME(0000B7EF00000F73) LOCLADDR(::ffff:99.111.222.99(1414))
> LSTMSGDA(2013-10-10) LSTMSGTI(19.42.49)
> MCASTAT(RUNNING) MCAUSER(pp12345)
> MONCHL(LOW) MSGS(2)
> RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)
> SSLCERTI( ) SSLKEYDA( )
> SSLKEYTI( ) SSLPEER( )
> SSLRKEYS(0) STATUS(RUNNING)
> STOPREQ(NO) SUBSTATE(RECEIVE)
> CURSHCNV(1) MAXSHCNV(10)
> RVERSION(07050002) RPRODUCT(MQCC)
>
>
> Peter Potkay
>
>
>
> ************************************************************
> This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
> ************************************************************
>
>
> List Archive - Manage Your List Settings - Unsubscribe
> Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
>


To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Costa, D. (Damian)
2013-10-11 10:17:28 UTC
Permalink
We've had issues with this before and it turns out that at the domain level the account is identified by uppercase values instead of lower case .
What happens if you add a chl auth rule with your clntuser in upper case?

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 11 October 2013 01:48 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Cannot get CHLAUTH Client ID Mapping to work

My client is MQ 7.5.0.2 on a Windows 7 desktop.
The Queue Manager is MQ 7.5.0.2 on a RHEL 6.4 server.
CHLAUTH is enabled.

DISPLAY QMGR CHLAUTH CMDLEVEL
AMQ8408: Display Queue Manager details.
QMNAME(MYQM) CHLAUTH(ENABLED)
CMDLEVEL(750)


Here's the MQ Client channel I'm testing with on my Lab server.

DIS CHANNEL(PETER.TEST.1) ALL
AMQ8414: Display Channel details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
ALTDATE(2013-10-10) ALTTIME(18.51.26)
COMPHDR(NONE) COMPMSG(NONE)
DESCR( ) DISCINT(0)
HBINT(30) KAINT(AUTO)
MAXINST(999999999) MAXINSTC(999999999)
MAXMSGL(104857600) MCAUSER(BOGUS_ID_123)
MONCHL(QMGR) RCVDATA( )
RCVEXIT( ) SCYDATA( )
SCYEXIT( ) SENDDATA( )
SENDEXIT( ) SHARECNV(10)
SSLCAUTH(REQUIRED) SSLCIPH( )
SSLPEER( ) TRPTYPE(TCP)


And here is my CHLAUTH rule.

DISPLAY CHLAUTH (PETER.TEST.1) ALL
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
DESCR( ) CUSTOM( )
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123) USERSRC(MAP)
ALTDATE(2013-10-10) ALTTIME(18.58.23)



I am logged into my PC as pp12345. And every time I connect to this queue manager over the PETER.TEST.1 channel the ID the channel runs as is BOGUS_ID_123. MQRC 2035. Authority Event message shows BOGUS_ID_123. Why is the CHLAUTH rule not kicking in and changing the connection to run as abc123?

If I blank out the MCAUSER on the channel, then I connect as pp12345. I happen to have access to some queues on this QM as this pp12345 ID and I can open those queues. If I do a channel status it shows me running as pp12345, not abc123 (see below). If I try and open some other queues I don't have access to, MQRC 2035 and the Authority Event message shows the pp12345 ID. Again, why is the CHLAUTH rule not kicking in and changing my connection to abc123?

Nothing in the queue manager error logs.


display chstatus(PETER.TEST.1) all
AMQ8417: Display Channel Status details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
BUFSRCVD(9) BUFSSENT(8)
BYTSRCVD(1628) BYTSSENT(1444)
CHSTADA(2013-10-10) CHSTATI(19.42.48)
COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)
COMPRATE(0,0) COMPTIME(0,0)
CONNAME(10.147.130.226) CURRENT
EXITTIME(0,0) HBINT(30)
JOBNAME(0000B7EF00000F73) LOCLADDR(::ffff:99.111.222.99(1414))
LSTMSGDA(2013-10-10) LSTMSGTI(19.42.49)
MCASTAT(RUNNING) MCAUSER(pp12345)
MONCHL(LOW) MSGS(2)
RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)
SSLCERTI( ) SSLKEYDA( )
SSLKEYTI( ) SSLPEER( )
SSLRKEYS(0) STATUS(RUNNING)
STOPREQ(NO) SUBSTATE(RECEIVE)
CURSHCNV(1) MAXSHCNV(10)
RVERSION(07050002) RPRODUCT(MQCC)


Peter Potkay




************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Potkay, Peter M (CTO Architecture + Engineering)
2013-10-11 13:59:43 UTC
Permalink
Damian,
I suspected that, but when I make a connection over the channel the active channel shows the ID in use as lowercase.
When I try to access queues I don't have rights to, the Authority Events show the ID in lowercase as well.

I think everything is using lowercase.


This morning, its working as expected. No changes were made to the channel or the CHLAUTH rules. The same test cases used yesterday that were not causing the mapping to kick in are working as expected today. The only thing done was after I sent the original email I started playing with the RUNCHECK option of the DISPLAY CHLAUTH command to see what it returned. Its as if the RUNCHECK gave the QM a kick in the pants to start respecting this USERMAP CHLAUTH rule. Other CHLAUTH rules (not related to mapping User IDs) were working fine before this though. New USERMAP rules I have played with this morning all work right away as expected.


3 : DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('9.999.999.999')
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123)


By the way, I tried this first without the quotes around the value in the CLNTUSER field and got "ChlAuth not found". I guess this would be the MQSC display command folding my ID from lowercase to uppercase and PP12345 not matching pp12345, so the display command didn't get a hit in that case. But I do believe its lowercase being used all around during execution.

I'm just puzzled why everything works normally this morning.


Neil,
I agree with you that its trivial to set any ID you want as a client. We will be using Captialware's Security Exit to do real authentication of the client on the other end, then using mapping rules to have the connection run as the ID we want.

Peter Potkay


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Costa, D. (Damian)
Sent: Friday, October 11, 2013 6:17 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

We've had issues with this before and it turns out that at the domain level the account is identified by uppercase values instead of lower case .
What happens if you add a chl auth rule with your clntuser in upper case?

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 11 October 2013 01:48 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Cannot get CHLAUTH Client ID Mapping to work

My client is MQ 7.5.0.2 on a Windows 7 desktop.
The Queue Manager is MQ 7.5.0.2 on a RHEL 6.4 server.
CHLAUTH is enabled.

DISPLAY QMGR CHLAUTH CMDLEVEL
AMQ8408: Display Queue Manager details.
QMNAME(MYQM) CHLAUTH(ENABLED)
CMDLEVEL(750)


Here's the MQ Client channel I'm testing with on my Lab server.

DIS CHANNEL(PETER.TEST.1) ALL
AMQ8414: Display Channel details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
ALTDATE(2013-10-10) ALTTIME(18.51.26)
COMPHDR(NONE) COMPMSG(NONE)
DESCR( ) DISCINT(0)
HBINT(30) KAINT(AUTO)
MAXINST(999999999) MAXINSTC(999999999)
MAXMSGL(104857600) MCAUSER(BOGUS_ID_123)
MONCHL(QMGR) RCVDATA( )
RCVEXIT( ) SCYDATA( )
SCYEXIT( ) SENDDATA( )
SENDEXIT( ) SHARECNV(10)
SSLCAUTH(REQUIRED) SSLCIPH( )
SSLPEER( ) TRPTYPE(TCP)


And here is my CHLAUTH rule.

DISPLAY CHLAUTH (PETER.TEST.1) ALL
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
DESCR( ) CUSTOM( )
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123) USERSRC(MAP)
ALTDATE(2013-10-10) ALTTIME(18.58.23)



I am logged into my PC as pp12345. And every time I connect to this queue manager over the PETER.TEST.1 channel the ID the channel runs as is BOGUS_ID_123. MQRC 2035. Authority Event message shows BOGUS_ID_123. Why is the CHLAUTH rule not kicking in and changing the connection to run as abc123?

If I blank out the MCAUSER on the channel, then I connect as pp12345. I happen to have access to some queues on this QM as this pp12345 ID and I can open those queues. If I do a channel status it shows me running as pp12345, not abc123 (see below). If I try and open some other queues I don't have access to, MQRC 2035 and the Authority Event message shows the pp12345 ID. Again, why is the CHLAUTH rule not kicking in and changing my connection to abc123?

Nothing in the queue manager error logs.


display chstatus(PETER.TEST.1) all
AMQ8417: Display Channel Status details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
BUFSRCVD(9) BUFSSENT(8)
BYTSRCVD(1628) BYTSSENT(1444)
CHSTADA(2013-10-10) CHSTATI(19.42.48)
COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)
COMPRATE(0,0) COMPTIME(0,0)
CONNAME(10.147.130.226) CURRENT
EXITTIME(0,0) HBINT(30)
JOBNAME(0000B7EF00000F73) LOCLADDR(::ffff:99.111.222.99(1414))
LSTMSGDA(2013-10-10) LSTMSGTI(19.42.49)
MCASTAT(RUNNING) MCAUSER(pp12345)
MONCHL(LOW) MSGS(2)
RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)
SSLCERTI( ) SSLKEYDA( )
SSLKEYTI( ) SSLPEER( )
SSLRKEYS(0) STATUS(RUNNING)
STOPREQ(NO) SUBSTATE(RECEIVE)
CURSHCNV(1) MAXSHCNV(10)
RVERSION(07050002) RPRODUCT(MQCC)


Peter Potkay




************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>
************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Roger Lacroix
2013-10-11 17:26:45 UTC
Permalink
Hi Peter,

> We will be using Captialware's Security Exit to do real
authentication of the client on the other end, then using mapping
rules to have the connection run as the ID we want.

I've mentioned this before but besides authentication, MQAUSX can do
everything CHLAUTH can do plus a whole lot more. I think I need to
do some blog write-ups on all of its hidden features. Also, MQAUSX
(or MQSSX) does not use Window's SID value when evaluating the UserID.

Here is a basic flow of what MQAUSX does when a client application
attempts to connect to a queue manager:

1) It processes all "Allow" keywords. i.e. AllowMqm,
AllowBlankUserID, AllowSSLSSCert, AllowUserID, AllowIP,
AllowHostname, AllowHostByName & AllowSSLDN

2) It processes all "Reject" keywords. i.e. RejectUserID, RejectIP,
RejectHostname, RejectHostByName & RejectSSLDN

3) If enabled, check if the UserID exists in a group of the Local OS
(or MS Active Directory) - yes, done before authentication (I thought
it was a good idea!).

4) Do the authentication

5) Now it determines what UserID will be assigned to the incoming
connection (set in the MCAUserIdentifier field).

Order of importance:
- By default, it will set the MCAUserIdentifier field to use the
UserID that was used for authentication
- If UseMCAUser is set then the value in the channel's MCAUSER
field will be used
- z/OS only - If UseSSLCertUserID is set then the value in the
channel's SSLCertUserid field will be used
- If UseSSLUserIDFromDN is set then it will extract the UserID
from the SSL DN and use it
- If UseLDAP & ExtractUserIDFromANR are set then it will extract
the UserID from the LDAP ANR field and use it
- If UseProxyFile, then it will look up the UserID in the Proxy
file for the associated Proxy ID.

For #1 & #3, if a negative result is found for any 'Allow', it
immediately closes the channel. For #2, if a positive result is found
for any 'Reject', it immediately closes the channel. And yes,
'Reject' keywords have a higher level of importance than 'Allow'.

Maybe its me, but isn't it better to use 1 tool to do both
authentication and rule mapping than to use 2 different tools (plus
you can set LogMode to Verbose or Debug to see what it is doing).

> CHLAUTH(PETER.TEST.1)

From that CHLAUTH rule, it would be as simple as adding 'pp12345 =
abc123' to the Proxy file and enabling UseProxy. That's it. No
fuss. Now, if you really want rules on a "per channel" basis, then
name your proxy files after the channel. i.e. PETER.TEST.1.txt and
set ProxyFile=PETER.TEST.1.txt

As always, if you think that something is missing or is required, let me know.

Regards,
Roger Lacroix
Capitalware Inc.

At 09:59 AM 10/11/2013, you wrote:
>Damian,
>I suspected that, but when I make a connection over the channel the
>active channel shows the ID in use as lowercase.
>When I try to access queues I don't have rights to, the Authority
>Events show the ID in lowercase as well.
>
>I think everything is using lowercase.
>
>
>This morning, its working as expected. No changes were made to the
>channel or the CHLAUTH rules. The same test cases used yesterday
>that were not causing the mapping to kick in are working as expected
>today. The only thing done was after I sent the original email I
>started playing with the RUNCHECK option of the DISPLAY CHLAUTH
>command to see what it returned. Its as if the RUNCHECK gave the QM
>a kick in the pants to start respecting this USERMAP CHLAUTH rule.
>Other CHLAUTH rules (not related to mapping User IDs) were working
>fine before this though. New USERMAP rules I have played with this
>morning all work right away as expected.
>
>
> 3 : DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK)
> CLNTUSER('pp12345') ADDRESS('9.999.999.999')
>AMQ8878: Display channel authentication record details.
> CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
> ADDRESS( ) CLNTUSER(pp12345)
> MCAUSER(abc123)
>
>
>By the way, I tried this first without the quotes around the value
>in the CLNTUSER field and got "ChlAuth not found". I guess this
>would be the MQSC display command folding my ID from lowercase to
>uppercase and PP12345 not matching pp12345, so the display command
>didn't get a hit in that case. But I do believe its lowercase being
>used all around during execution.
>
>I'm just puzzled why everything works normally this morning.
>
>
>Neil,
>I agree with you that its trivial to set any ID you want as a
>client. We will be using Captialware's Security Exit to do real
>authentication of the client on the other end, then using mapping
>rules to have the connection run as the ID we want.
>
>Peter Potkay
>
>
>From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On
>Behalf Of Costa, D. (Damian)
>Sent: Friday, October 11, 2013 6:17 AM
>To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
>Subject: Re: Cannot get CHLAUTH Client ID Mapping to work
>
>We've had issues with this before and it turns out that at the
>domain level the account is identified by uppercase values instead
>of lower case .
>What happens if you add a chl auth rule with your clntuser in upper case?
>
>From: MQSeries List
>[<mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org]
>On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
>Sent: 11 October 2013 01:48 AM
>To:
><mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
>Subject: Cannot get CHLAUTH Client ID Mapping to work
>
>My client is MQ 7.5.0.2 on a Windows 7 desktop.
>The Queue Manager is MQ 7.5.0.2 on a RHEL 6.4 server.
>CHLAUTH is enabled.
>
>DISPLAY QMGR CHLAUTH CMDLEVEL
>AMQ8408: Display Queue Manager details.
>QMNAME(MYQM) CHLAUTH(ENABLED)
>CMDLEVEL(750)
>
>
>Here's the MQ Client channel I'm testing with on my Lab server.
>
>DIS CHANNEL(PETER.TEST.1) ALL
>AMQ8414: Display Channel details.
>CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
>ALTDATE(2013-10-10) ALTTIME(18.51.26)
>COMPHDR(NONE) COMPMSG(NONE)
>DESCR( ) DISCINT(0)
>HBINT(30) KAINT(AUTO)
>MAXINST(999999999) MAXINSTC(999999999)
>MAXMSGL(104857600) MCAUSER(BOGUS_ID_123)
>MONCHL(QMGR) RCVDATA( )
>RCVEXIT( ) SCYDATA( )
>SCYEXIT( ) SENDDATA( )
>SENDEXIT( ) SHARECNV(10)
>SSLCAUTH(REQUIRED) SSLCIPH( )
>SSLPEER( ) TRPTYPE(TCP)
>
>
>And here is my CHLAUTH rule.
>
>DISPLAY CHLAUTH (PETER.TEST.1) ALL
>AMQ8878: Display channel authentication record details.
>CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
>DESCR( ) CUSTOM( )
>ADDRESS( ) CLNTUSER(pp12345)
>MCAUSER(abc123) USERSRC(MAP)
>ALTDATE(2013-10-10) ALTTIME(18.58.23)
>
>
>
>I am logged into my PC as pp12345. And every time I connect to this
>queue manager over the PETER.TEST.1 channel the ID the channel runs
>as is BOGUS_ID_123. MQRC 2035. Authority Event message shows
>BOGUS_ID_123. Why is the CHLAUTH rule not kicking in and changing
>the connection to run as abc123?
>
>If I blank out the MCAUSER on the channel, then I connect as
>pp12345. I happen to have access to some queues on this QM as this
>pp12345 ID and I can open those queues. If I do a channel status it
>shows me running as pp12345, not abc123 (see below). If I try and
>open some other queues I don't have access to, MQRC 2035 and the
>Authority Event message shows the pp12345 ID. Again, why is the
>CHLAUTH rule not kicking in and changing my connection to abc123?
>
>Nothing in the queue manager error logs.
>
>
>display chstatus(PETER.TEST.1) all
>AMQ8417: Display Channel Status details.
>CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
>BUFSRCVD(9) BUFSSENT(8)
>BYTSRCVD(1628) BYTSSENT(1444)
>CHSTADA(2013-10-10) CHSTATI(19.42.48)
>COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)
>COMPRATE(0,0) COMPTIME(0,0)
>CONNAME(10.147.130.226) CURRENT
>EXITTIME(0,0) HBINT(30)
>JOBNAME(0000B7EF00000F73) LOCLADDR(::ffff:99.111.222.99(1414))
>LSTMSGDA(2013-10-10) LSTMSGTI(19.42.49)
>MCASTAT(RUNNING) MCAUSER(pp12345)
>MONCHL(LOW) MSGS(2)
>RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)
>SSLCERTI( ) SSLKEYDA( )
>SSLKEYTI( ) SSLPEER( )
>SSLRKEYS(0) STATUS(RUNNING)
>STOPREQ(NO) SUBSTATE(RECEIVE)
>CURSHCNV(1) MAXSHCNV(10)
>RVERSION(07050002) RPRODUCT(MQCC)
>
>
>Peter Potkay
>
>
>
>
>************************************************************
>This communication, including attachments, is for the exclusive use
>of addressee and may contain proprietary, confidential and/or
>privileged information. If you are not the intended recipient, any
>use, copying, disclosure, dissemination or distribution is strictly
>prohibited. If you are not the intended recipient, please notify
>the sender immediately by return e-mail, delete this communication
>and destroy all copies.
>************************************************************
>
>
><http://listserv.meduniwien.ac.at/archives/mqser-l.html>List Archive
>-
><http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1>Manage
>Your List Settings -
><mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>Unsubscribe
>
>
>Instructions for managing your mailing list subscription are
>provided in the Listserv General Users Guide available at
><http://www.lsoft.com/resources/manuals.asp>http://www.lsoft.com
>
>
>********************
>Nedbank Limited Reg No 1951/000009/06. The following link displays
>the names of the Nedbank Board of Directors and Company Secretary.
>[
><http://www.nedbank.co.za/terms/DirectorsNedbank.htm>http://www.nedbank.co.za/terms/DirectorsNedbank.htm
>]
>This email is confidential and is intended for the addressee only.
>The following link will take you to Nedbank's legal notice.
>[
><http://www.nedbank.co.za/terms/EmailDisclaimer.htm>http://www.nedbank.co.za/terms/EmailDisclaimer.htm
>]
>********************
>
>
>----------
><http://listserv.meduniwien.ac.at/archives/mqser-l.html>List Archive
>-
><http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1>Manage
>Your List Settings -
><mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>Unsubscribe
>
>
>Instructions for managing your mailing list subscription are
>provided in the Listserv General Users Guide available at
><http://www.lsoft.com/resources/manuals.asp>http://www.lsoft.com
>
>************************************************************
>This communication, including attachments, is for the exclusive use
>of addressee and may contain proprietary, confidential and/or
>privileged information. If you are not the intended recipient, any
>use, copying, disclosure, dissemination or distribution is strictly
>prohibited. If you are not the intended recipient, please notify
>the sender immediately by return e-mail, delete this communication
>and destroy all copies.
>************************************************************
>
>
>----------
><http://listserv.meduniwien.ac.at/archives/mqser-l.html>List Archive
>-
><http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1>Manage
>Your List Settings -
><mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>Unsubscribe
>
>
>Instructions for managing your mailing list subscription are
>provided in the Listserv General Users Guide available at
><http://www.lsoft.com/resources/manuals.asp>http://www.lsoft.com

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Potkay, Peter M (CTO Architecture + Engineering)
2013-10-14 12:53:06 UTC
Permalink
Interesting. I decided to play around with this some more last night. The behavior reverted to what I had originally posted - the CHLAUTH rule to map pp12345 to abc123 was not being invoked even though I was connecting over the named channel and as that ID.

This morning its working again as expected.

My test cases are identical except for one thing I realized. When I'm working from home they don't work as expected, when I'm logged in at the office they work as expected. When I'm working from home I'm coming in over a VPN tunnel. The MQ Client connection originates from my physical laptop where I am logged in as pp12345, and the Queue Manager resides on a server inside our data center.

I originally set up the CHLAUTH rule when I was working from home and never got the expected mapping to work - my opening post. When I reported it started working, I was in the office. Last night it stopped working, I was at home. This morning its working again as I test from the office.

Even though there is no CHLAUTH rule based on IP address I did try the following when I was working from home. I RDP'ed onto an unrelated server that had MQ Client installed and repeated the same test. Even though I and my laptop were at home coming in over the VPN, my test case was executing directly on the server. The CHLAUTH rule worked. And I tried that same test this morning in the office, RDP'ing to the other server. It works. So its not IP based.

It seems the connection over VPN is doing something that causes the CHLAUTH rule to not fire. Its not IP address related, since I proved coming from different IPs doesn't matter, and there isn't an IP based CHLAUTH rule anyway. I thought maybe the ID that was sent by the client was somehow messed with over the VPN connection, but that's not it because when I tried to connect over another client channel with a blank MCAUSER and no CHLAUTH rule the ID shown in the running channel was pp12345. And if I tried to access a queue I wasn't allowed to the Authority Event showed pp12345.

Very odd. Anyone have any ideas why this is behaving like this?

I'm going to try one more time tonight from home and if the pattern persists I guess its time to run a trace on the Queue Manager for both test cases (from the office and from home) and open a PMR.

Peter Potkay


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Friday, October 11, 2013 10:00 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Damian,
I suspected that, but when I make a connection over the channel the active channel shows the ID in use as lowercase.
When I try to access queues I don't have rights to, the Authority Events show the ID in lowercase as well.

I think everything is using lowercase.


This morning, its working as expected. No changes were made to the channel or the CHLAUTH rules. The same test cases used yesterday that were not causing the mapping to kick in are working as expected today. The only thing done was after I sent the original email I started playing with the RUNCHECK option of the DISPLAY CHLAUTH command to see what it returned. Its as if the RUNCHECK gave the QM a kick in the pants to start respecting this USERMAP CHLAUTH rule. Other CHLAUTH rules (not related to mapping User IDs) were working fine before this though. New USERMAP rules I have played with this morning all work right away as expected.


3 : DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('9.999.999.999')
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123)


By the way, I tried this first without the quotes around the value in the CLNTUSER field and got "ChlAuth not found". I guess this would be the MQSC display command folding my ID from lowercase to uppercase and PP12345 not matching pp12345, so the display command didn't get a hit in that case. But I do believe its lowercase being used all around during execution.

I'm just puzzled why everything works normally this morning.


Neil,
I agree with you that its trivial to set any ID you want as a client. We will be using Captialware's Security Exit to do real authentication of the client on the other end, then using mapping rules to have the connection run as the ID we want.

Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Costa, D. (Damian)
Sent: Friday, October 11, 2013 6:17 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

We've had issues with this before and it turns out that at the domain level the account is identified by uppercase values instead of lower case .
What happens if you add a chl auth rule with your clntuser in upper case?

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 11 October 2013 01:48 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Cannot get CHLAUTH Client ID Mapping to work

My client is MQ 7.5.0.2 on a Windows 7 desktop.
The Queue Manager is MQ 7.5.0.2 on a RHEL 6.4 server.
CHLAUTH is enabled.

DISPLAY QMGR CHLAUTH CMDLEVEL
AMQ8408: Display Queue Manager details.
QMNAME(MYQM) CHLAUTH(ENABLED)
CMDLEVEL(750)


Here's the MQ Client channel I'm testing with on my Lab server.

DIS CHANNEL(PETER.TEST.1) ALL
AMQ8414: Display Channel details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
ALTDATE(2013-10-10) ALTTIME(18.51.26)
COMPHDR(NONE) COMPMSG(NONE)
DESCR( ) DISCINT(0)
HBINT(30) KAINT(AUTO)
MAXINST(999999999) MAXINSTC(999999999)
MAXMSGL(104857600) MCAUSER(BOGUS_ID_123)
MONCHL(QMGR) RCVDATA( )
RCVEXIT( ) SCYDATA( )
SCYEXIT( ) SENDDATA( )
SENDEXIT( ) SHARECNV(10)
SSLCAUTH(REQUIRED) SSLCIPH( )
SSLPEER( ) TRPTYPE(TCP)


And here is my CHLAUTH rule.

DISPLAY CHLAUTH (PETER.TEST.1) ALL
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
DESCR( ) CUSTOM( )
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123) USERSRC(MAP)
ALTDATE(2013-10-10) ALTTIME(18.58.23)



I am logged into my PC as pp12345. And every time I connect to this queue manager over the PETER.TEST.1 channel the ID the channel runs as is BOGUS_ID_123. MQRC 2035. Authority Event message shows BOGUS_ID_123. Why is the CHLAUTH rule not kicking in and changing the connection to run as abc123?

If I blank out the MCAUSER on the channel, then I connect as pp12345. I happen to have access to some queues on this QM as this pp12345 ID and I can open those queues. If I do a channel status it shows me running as pp12345, not abc123 (see below). If I try and open some other queues I don't have access to, MQRC 2035 and the Authority Event message shows the pp12345 ID. Again, why is the CHLAUTH rule not kicking in and changing my connection to abc123?

Nothing in the queue manager error logs.


display chstatus(PETER.TEST.1) all
AMQ8417: Display Channel Status details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
BUFSRCVD(9) BUFSSENT(8)
BYTSRCVD(1628) BYTSSENT(1444)
CHSTADA(2013-10-10) CHSTATI(19.42.48)
COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)
COMPRATE(0,0) COMPTIME(0,0)
CONNAME(10.147.130.226) CURRENT
EXITTIME(0,0) HBINT(30)
JOBNAME(0000B7EF00000F73) LOCLADDR(::ffff:99.111.222.99(1414))
LSTMSGDA(2013-10-10) LSTMSGTI(19.42.49)
MCASTAT(RUNNING) MCAUSER(pp12345)
MONCHL(LOW) MSGS(2)
RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)
SSLCERTI( ) SSLKEYDA( )
SSLKEYTI( ) SSLPEER( )
SSLRKEYS(0) STATUS(RUNNING)
STOPREQ(NO) SUBSTATE(RECEIVE)
CURSHCNV(1) MAXSHCNV(10)
RVERSION(07050002) RPRODUCT(MQCC)


Peter Potkay




************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>
************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Costa, D. (Damian)
2013-10-14 13:02:57 UTC
Permalink
Hi,
Peter we're doing the same sort of stuff but on MQ V 7.1 we are also dialling into the office network via VPN's and such but there is no connectivity failures to MQ V7.1 qmgrs with chl auth rules enabled.

Looks to me you'll really have to look under the covers here. So no avoiding a trace file or two I'm afraid.



From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 14 October 2013 02:53 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Interesting. I decided to play around with this some more last night. The behavior reverted to what I had originally posted - the CHLAUTH rule to map pp12345 to abc123 was not being invoked even though I was connecting over the named channel and as that ID.

This morning its working again as expected.

My test cases are identical except for one thing I realized. When I'm working from home they don't work as expected, when I'm logged in at the office they work as expected. When I'm working from home I'm coming in over a VPN tunnel. The MQ Client connection originates from my physical laptop where I am logged in as pp12345, and the Queue Manager resides on a server inside our data center.

I originally set up the CHLAUTH rule when I was working from home and never got the expected mapping to work - my opening post. When I reported it started working, I was in the office. Last night it stopped working, I was at home. This morning its working again as I test from the office.

Even though there is no CHLAUTH rule based on IP address I did try the following when I was working from home. I RDP'ed onto an unrelated server that had MQ Client installed and repeated the same test. Even though I and my laptop were at home coming in over the VPN, my test case was executing directly on the server. The CHLAUTH rule worked. And I tried that same test this morning in the office, RDP'ing to the other server. It works. So its not IP based.

It seems the connection over VPN is doing something that causes the CHLAUTH rule to not fire. Its not IP address related, since I proved coming from different IPs doesn't matter, and there isn't an IP based CHLAUTH rule anyway. I thought maybe the ID that was sent by the client was somehow messed with over the VPN connection, but that's not it because when I tried to connect over another client channel with a blank MCAUSER and no CHLAUTH rule the ID shown in the running channel was pp12345. And if I tried to access a queue I wasn't allowed to the Authority Event showed pp12345.

Very odd. Anyone have any ideas why this is behaving like this?

I'm going to try one more time tonight from home and if the pattern persists I guess its time to run a trace on the Queue Manager for both test cases (from the office and from home) and open a PMR.

Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Friday, October 11, 2013 10:00 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Damian,
I suspected that, but when I make a connection over the channel the active channel shows the ID in use as lowercase.
When I try to access queues I don't have rights to, the Authority Events show the ID in lowercase as well.

I think everything is using lowercase.


This morning, its working as expected. No changes were made to the channel or the CHLAUTH rules. The same test cases used yesterday that were not causing the mapping to kick in are working as expected today. The only thing done was after I sent the original email I started playing with the RUNCHECK option of the DISPLAY CHLAUTH command to see what it returned. Its as if the RUNCHECK gave the QM a kick in the pants to start respecting this USERMAP CHLAUTH rule. Other CHLAUTH rules (not related to mapping User IDs) were working fine before this though. New USERMAP rules I have played with this morning all work right away as expected.


3 : DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('9.999.999.999')
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123)


By the way, I tried this first without the quotes around the value in the CLNTUSER field and got "ChlAuth not found". I guess this would be the MQSC display command folding my ID from lowercase to uppercase and PP12345 not matching pp12345, so the display command didn't get a hit in that case. But I do believe its lowercase being used all around during execution.

I'm just puzzled why everything works normally this morning.


Neil,
I agree with you that its trivial to set any ID you want as a client. We will be using Captialware's Security Exit to do real authentication of the client on the other end, then using mapping rules to have the connection run as the ID we want.

Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Costa, D. (Damian)
Sent: Friday, October 11, 2013 6:17 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

We've had issues with this before and it turns out that at the domain level the account is identified by uppercase values instead of lower case .
What happens if you add a chl auth rule with your clntuser in upper case?

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 11 October 2013 01:48 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Cannot get CHLAUTH Client ID Mapping to work

My client is MQ 7.5.0.2 on a Windows 7 desktop.
The Queue Manager is MQ 7.5.0.2 on a RHEL 6.4 server.
CHLAUTH is enabled.

DISPLAY QMGR CHLAUTH CMDLEVEL
AMQ8408: Display Queue Manager details.
QMNAME(MYQM) CHLAUTH(ENABLED)
CMDLEVEL(750)


Here's the MQ Client channel I'm testing with on my Lab server.

DIS CHANNEL(PETER.TEST.1) ALL
AMQ8414: Display Channel details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
ALTDATE(2013-10-10) ALTTIME(18.51.26)
COMPHDR(NONE) COMPMSG(NONE)
DESCR( ) DISCINT(0)
HBINT(30) KAINT(AUTO)
MAXINST(999999999) MAXINSTC(999999999)
MAXMSGL(104857600) MCAUSER(BOGUS_ID_123)
MONCHL(QMGR) RCVDATA( )
RCVEXIT( ) SCYDATA( )
SCYEXIT( ) SENDDATA( )
SENDEXIT( ) SHARECNV(10)
SSLCAUTH(REQUIRED) SSLCIPH( )
SSLPEER( ) TRPTYPE(TCP)


And here is my CHLAUTH rule.

DISPLAY CHLAUTH (PETER.TEST.1) ALL
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
DESCR( ) CUSTOM( )
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123) USERSRC(MAP)
ALTDATE(2013-10-10) ALTTIME(18.58.23)



I am logged into my PC as pp12345. And every time I connect to this queue manager over the PETER.TEST.1 channel the ID the channel runs as is BOGUS_ID_123. MQRC 2035. Authority Event message shows BOGUS_ID_123. Why is the CHLAUTH rule not kicking in and changing the connection to run as abc123?

If I blank out the MCAUSER on the channel, then I connect as pp12345. I happen to have access to some queues on this QM as this pp12345 ID and I can open those queues. If I do a channel status it shows me running as pp12345, not abc123 (see below). If I try and open some other queues I don't have access to, MQRC 2035 and the Authority Event message shows the pp12345 ID. Again, why is the CHLAUTH rule not kicking in and changing my connection to abc123?

Nothing in the queue manager error logs.


display chstatus(PETER.TEST.1) all
AMQ8417: Display Channel Status details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
BUFSRCVD(9) BUFSSENT(8)
BYTSRCVD(1628) BYTSSENT(1444)
CHSTADA(2013-10-10) CHSTATI(19.42.48)
COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)
COMPRATE(0,0) COMPTIME(0,0)
CONNAME(10.147.130.226) CURRENT
EXITTIME(0,0) HBINT(30)
JOBNAME(0000B7EF00000F73) LOCLADDR(::ffff:99.111.222.99(1414))
LSTMSGDA(2013-10-10) LSTMSGTI(19.42.49)
MCASTAT(RUNNING) MCAUSER(pp12345)
MONCHL(LOW) MSGS(2)
RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)
SSLCERTI( ) SSLKEYDA( )
SSLKEYTI( ) SSLPEER( )
SSLRKEYS(0) STATUS(RUNNING)
STOPREQ(NO) SUBSTATE(RECEIVE)
CURSHCNV(1) MAXSHCNV(10)
RVERSION(07050002) RPRODUCT(MQCC)


Peter Potkay




************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Neil Casey
2013-10-14 13:20:36 UTC
Permalink
Hi,

this might not be relevant, but are the accounts on the home and office PCs local or domain accounts, and is the server using domain accounts?

If your home PC has a local account pp12345, and the RDP machine in the office uses a domain login (also pp12345 but of course actually a different account) then that might account for the different behaviour.

However, the manual doesn't mention that domain or SID is checked… it just says the client asserted userid.

Regards,


Neil Casey
mailto:Neil_Casey-8K57OPj+***@public.gmane.org mobile: +61 414 615 334










On 15/10/2013, at 12:02 AM, "Costa, D. (Damian)" <DamianC-3zJjxGF14/***@public.gmane.org> wrote:

> Hi,
> Peter we’re doing the same sort of stuff but on MQ V 7.1 we are also dialling into the office network via VPN’s and such but there is no connectivity failures to MQ V7.1 qmgrs with chl auth rules enabled.
>
> Looks to me you’ll really have to look under the covers here. So no avoiding a trace file or two I’m afraid.
>
>
>
> From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
> Sent: 14 October 2013 02:53 PM
> To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
> Subject: Re: Cannot get CHLAUTH Client ID Mapping to work
>
> Interesting. I decided to play around with this some more last night. The behavior reverted to what I had originally posted - the CHLAUTH rule to map pp12345 to abc123 was not being invoked even though I was connecting over the named channel and as that ID.
>
> This morning its working again as expected.
>
> My test cases are identical except for one thing I realized. When I'm working from home they don't work as expected, when I'm logged in at the office they work as expected. When I'm working from home I'm coming in over a VPN tunnel. The MQ Client connection originates from my physical laptop where I am logged in as pp12345, and the Queue Manager resides on a server inside our data center.
>
> I originally set up the CHLAUTH rule when I was working from home and never got the expected mapping to work - my opening post. When I reported it started working, I was in the office. Last night it stopped working, I was at home. This morning its working again as I test from the office.
>
> Even though there is no CHLAUTH rule based on IP address I did try the following when I was working from home. I RDP'ed onto an unrelated server that had MQ Client installed and repeated the same test. Even though I and my laptop were at home coming in over the VPN, my test case was executing directly on the server. The CHLAUTH rule worked. And I tried that same test this morning in the office, RDP'ing to the other server. It works. So its not IP based.
>
> It seems the connection over VPN is doing something that causes the CHLAUTH rule to not fire. Its not IP address related, since I proved coming from different IPs doesn't matter, and there isn't an IP based CHLAUTH rule anyway. I thought maybe the ID that was sent by the client was somehow messed with over the VPN connection, but that's not it because when I tried to connect over another client channel with a blank MCAUSER and no CHLAUTH rule the ID shown in the running channel was pp12345. And if I tried to access a queue I wasn't allowed to the Authority Event showed pp12345.
>
> Very odd. Anyone have any ideas why this is behaving like this?
>
> I'm going to try one more time tonight from home and if the pattern persists I guess its time to run a trace on the Queue Manager for both test cases (from the office and from home) and open a PMR.
>
> Peter Potkay
>
>
> From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
> Sent: Friday, October 11, 2013 10:00 AM
> To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
> Subject: Re: Cannot get CHLAUTH Client ID Mapping to work
>
> Damian,
> I suspected that, but when I make a connection over the channel the active channel shows the ID in use as lowercase.
> When I try to access queues I don’t have rights to, the Authority Events show the ID in lowercase as well.
>
> I think everything is using lowercase.
>
>
> This morning, its working as expected. No changes were made to the channel or the CHLAUTH rules. The same test cases used yesterday that were not causing the mapping to kick in are working as expected today. The only thing done was after I sent the original email I started playing with the RUNCHECK option of the DISPLAY CHLAUTH command to see what it returned. Its as if the RUNCHECK gave the QM a kick in the pants to start respecting this USERMAP CHLAUTH rule. Other CHLAUTH rules (not related to mapping User IDs) were working fine before this though. New USERMAP rules I have played with this morning all work right away as expected.
>
>
> 3 : DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('9.999.999.999')
> AMQ8878: Display channel authentication record details.
> CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
> ADDRESS( ) CLNTUSER(pp12345)
> MCAUSER(abc123)
>
>
> By the way, I tried this first without the quotes around the value in the CLNTUSER field and got “ChlAuth not found”. I guess this would be the MQSC display command folding my ID from lowercase to uppercase and PP12345 not matching pp12345, so the display command didn’t get a hit in that case. But I do believe its lowercase being used all around during execution.
>
> I’m just puzzled why everything works normally this morning.
>
>
> Neil,
> I agree with you that its trivial to set any ID you want as a client. We will be using Captialware’s Security Exit to do real authentication of the client on the other end, then using mapping rules to have the connection run as the ID we want.
>
> Peter Potkay
>
>
> From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Costa, D. (Damian)
> Sent: Friday, October 11, 2013 6:17 AM
> To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
> Subject: Re: Cannot get CHLAUTH Client ID Mapping to work
>
> We’ve had issues with this before and it turns out that at the domain level the account is identified by uppercase values instead of lower case .
> What happens if you add a chl auth rule with your clntuser in upper case?
>
> From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
> Sent: 11 October 2013 01:48 AM
> To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
> Subject: Cannot get CHLAUTH Client ID Mapping to work
>
> My client is MQ 7.5.0.2 on a Windows 7 desktop.
> The Queue Manager is MQ 7.5.0.2 on a RHEL 6.4 server.
> CHLAUTH is enabled.
>
> DISPLAY QMGR CHLAUTH CMDLEVEL
> AMQ8408: Display Queue Manager details.
> QMNAME(MYQM) CHLAUTH(ENABLED)
> CMDLEVEL(750)
>
>
> Here’s the MQ Client channel I’m testing with on my Lab server.
>
> DIS CHANNEL(PETER.TEST.1) ALL
> AMQ8414: Display Channel details.
> CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
> ALTDATE(2013-10-10) ALTTIME(18.51.26)
> COMPHDR(NONE) COMPMSG(NONE)
> DESCR( ) DISCINT(0)
> HBINT(30) KAINT(AUTO)
> MAXINST(999999999) MAXINSTC(999999999)
> MAXMSGL(104857600) MCAUSER(BOGUS_ID_123)
> MONCHL(QMGR) RCVDATA( )
> RCVEXIT( ) SCYDATA( )
> SCYEXIT( ) SENDDATA( )
> SENDEXIT( ) SHARECNV(10)
> SSLCAUTH(REQUIRED) SSLCIPH( )
> SSLPEER( ) TRPTYPE(TCP)
>
>
> And here is my CHLAUTH rule.
>
> DISPLAY CHLAUTH (PETER.TEST.1) ALL
> AMQ8878: Display channel authentication record details.
> CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
> DESCR( ) CUSTOM( )
> ADDRESS( ) CLNTUSER(pp12345)
> MCAUSER(abc123) USERSRC(MAP)
> ALTDATE(2013-10-10) ALTTIME(18.58.23)
>
>
>
> I am logged into my PC as pp12345. And every time I connect to this queue manager over the PETER.TEST.1 channel the ID the channel runs as is BOGUS_ID_123. MQRC 2035. Authority Event message shows BOGUS_ID_123. Why is the CHLAUTH rule not kicking in and changing the connection to run as abc123?
>
> If I blank out the MCAUSER on the channel, then I connect as pp12345. I happen to have access to some queues on this QM as this pp12345 ID and I can open those queues. If I do a channel status it shows me running as pp12345, not abc123 (see below). If I try and open some other queues I don’t have access to, MQRC 2035 and the Authority Event message shows the pp12345 ID. Again, why is the CHLAUTH rule not kicking in and changing my connection to abc123?
>
> Nothing in the queue manager error logs.
>
>
> display chstatus(PETER.TEST.1) all
> AMQ8417: Display Channel Status details.
> CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
> BUFSRCVD(9) BUFSSENT(8)
> BYTSRCVD(1628) BYTSSENT(1444)
> CHSTADA(2013-10-10) CHSTATI(19.42.48)
> COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)
> COMPRATE(0,0) COMPTIME(0,0)
> CONNAME(10.147.130.226) CURRENT
> EXITTIME(0,0) HBINT(30)
> JOBNAME(0000B7EF00000F73) LOCLADDR(::ffff:99.111.222.99(1414))
> LSTMSGDA(2013-10-10) LSTMSGTI(19.42.49)
> MCASTAT(RUNNING) MCAUSER(pp12345)
> MONCHL(LOW) MSGS(2)
> RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)
> SSLCERTI( ) SSLKEYDA( )
> SSLKEYTI( ) SSLPEER( )
> SSLRKEYS(0) STATUS(RUNNING)
> STOPREQ(NO) SUBSTATE(RECEIVE)
> CURSHCNV(1) MAXSHCNV(10)
> RVERSION(07050002) RPRODUCT(MQCC)
>
>
> Peter Potkay
>
>
>
> ************************************************************
> This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
> ************************************************************
>
>
> List Archive - Manage Your List Settings - Unsubscribe
> Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
>
>
> ********************
> Nedbank Limited Reg No 1951/000009/06. The following link displays
> the names of the Nedbank Board of Directors and Company Secretary.
> [ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
> This email is confidential and is intended for the addressee only.
> The following link will take you to Nedbank's legal notice.
> [ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
> ********************
>
>
> List Archive - Manage Your List Settings - Unsubscribe
> Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
>
> ************************************************************
> This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
> ************************************************************
>
>
> List Archive - Manage Your List Settings - Unsubscribe
> Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
>
> ************************************************************
> This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
> ************************************************************
>
>
> List Archive - Manage Your List Settings - Unsubscribe
> Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
>
>
> ********************
> Nedbank Limited Reg No 1951/000009/06. The following link displays
> the names of the Nedbank Board of Directors and Company Secretary.
> [ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
> This email is confidential and is intended for the addressee only.
> The following link will take you to Nedbank's legal notice.
> [ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
> ********************
>
>
> List Archive - Manage Your List Settings - Unsubscribe
> Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
>


To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Potkay, Peter M (CTO Architecture + Engineering)
2013-10-14 13:35:52 UTC
Permalink
"but are the accounts on the home and office PCs local or domain accounts"
The home and office PC are one and the same, my laptop that I bring with me.

I am logged in as a domain ID on my laptop. I use that same domain ID log in when I get onto a server with just the MQ Client to use as another test case.

I never see the domain info when I see the ID displayed in an Authority Event message or in the MCAUSER field of a running channel instance.


Peter Potkay


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Neil Casey
Sent: Monday, October 14, 2013 9:21 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Hi,

this might not be relevant, but are the accounts on the home and office PCs local or domain accounts, and is the server using domain accounts?

If your home PC has a local account pp12345, and the RDP machine in the office uses a domain login (also pp12345 but of course actually a different account) then that might account for the different behaviour.

However, the manual doesn't mention that domain or SID is checked... it just says the client asserted userid.

Regards,


Neil Casey
mailto:Neil_Casey-8K57OPj+***@public.gmane.org mobile: +61 414 615 334

[cid:image001.png-MANRg1dld+***@public.gmane.org]








On 15/10/2013, at 12:02 AM, "Costa, D. (Damian)" <DamianC-3zJjxGF14/***@public.gmane.org<mailto:DamianC-3zJjxGF14/***@public.gmane.org>> wrote:


Hi,
Peter we're doing the same sort of stuff but on MQ V 7.1 we are also dialling into the office network via VPN's and such but there is no connectivity failures to MQ V7.1 qmgrs with chl auth rules enabled.

Looks to me you'll really have to look under the covers here. So no avoiding a trace file or two I'm afraid.




From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 14 October 2013 02:53 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Interesting. I decided to play around with this some more last night. The behavior reverted to what I had originally posted - the CHLAUTH rule to map pp12345 to abc123 was not being invoked even though I was connecting over the named channel and as that ID.

This morning its working again as expected.

My test cases are identical except for one thing I realized. When I'm working from home they don't work as expected, when I'm logged in at the office they work as expected. When I'm working from home I'm coming in over a VPN tunnel. The MQ Client connection originates from my physical laptop where I am logged in as pp12345, and the Queue Manager resides on a server inside our data center.

I originally set up the CHLAUTH rule when I was working from home and never got the expected mapping to work - my opening post. When I reported it started working, I was in the office. Last night it stopped working, I was at home. This morning its working again as I test from the office.

Even though there is no CHLAUTH rule based on IP address I did try the following when I was working from home. I RDP'ed onto an unrelated server that had MQ Client installed and repeated the same test. Even though I and my laptop were at home coming in over the VPN, my test case was executing directly on the server. The CHLAUTH rule worked. And I tried that same test this morning in the office, RDP'ing to the other server. It works. So its not IP based.

It seems the connection over VPN is doing something that causes the CHLAUTH rule to not fire. Its not IP address related, since I proved coming from different IPs doesn't matter, and there isn't an IP based CHLAUTH rule anyway. I thought maybe the ID that was sent by the client was somehow messed with over the VPN connection, but that's not it because when I tried to connect over another client channel with a blank MCAUSER and no CHLAUTH rule the ID shown in the running channel was pp12345. And if I tried to access a queue I wasn't allowed to the Authority Event showed pp12345.

Very odd. Anyone have any ideas why this is behaving like this?

I'm going to try one more time tonight from home and if the pattern persists I guess its time to run a trace on the Queue Manager for both test cases (from the office and from home) and open a PMR.

Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Friday, October 11, 2013 10:00 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Damian,
I suspected that, but when I make a connection over the channel the active channel shows the ID in use as lowercase.
When I try to access queues I don't have rights to, the Authority Events show the ID in lowercase as well.

I think everything is using lowercase.


This morning, its working as expected. No changes were made to the channel or the CHLAUTH rules. The same test cases used yesterday that were not causing the mapping to kick in are working as expected today. The only thing done was after I sent the original email I started playing with the RUNCHECK option of the DISPLAY CHLAUTH command to see what it returned. Its as if the RUNCHECK gave the QM a kick in the pants to start respecting this USERMAP CHLAUTH rule. Other CHLAUTH rules (not related to mapping User IDs) were working fine before this though. New USERMAP rules I have played with this morning all work right away as expected.


3 : DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('9.999.999.999')
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123)


By the way, I tried this first without the quotes around the value in the CLNTUSER field and got "ChlAuth not found". I guess this would be the MQSC display command folding my ID from lowercase to uppercase and PP12345 not matching pp12345, so the display command didn't get a hit in that case. But I do believe its lowercase being used all around during execution.

I'm just puzzled why everything works normally this morning.


Neil,
I agree with you that its trivial to set any ID you want as a client. We will be using Captialware's Security Exit to do real authentication of the client on the other end, then using mapping rules to have the connection run as the ID we want.

Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Costa, D. (Damian)
Sent: Friday, October 11, 2013 6:17 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

We've had issues with this before and it turns out that at the domain level the account is identified by uppercase values instead of lower case .
What happens if you add a chl auth rule with your clntuser in upper case?

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 11 October 2013 01:48 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Cannot get CHLAUTH Client ID Mapping to work

My client is MQ 7.5.0.2 on a Windows 7 desktop.
The Queue Manager is MQ 7.5.0.2 on a RHEL 6.4 server.
CHLAUTH is enabled.

DISPLAY QMGR CHLAUTH CMDLEVEL
AMQ8408: Display Queue Manager details.
QMNAME(MYQM) CHLAUTH(ENABLED)
CMDLEVEL(750)


Here's the MQ Client channel I'm testing with on my Lab server.

DIS CHANNEL(PETER.TEST.1) ALL
AMQ8414: Display Channel details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
ALTDATE(2013-10-10) ALTTIME(18.51.26)
COMPHDR(NONE) COMPMSG(NONE)
DESCR( ) DISCINT(0)
HBINT(30) KAINT(AUTO)
MAXINST(999999999) MAXINSTC(999999999)
MAXMSGL(104857600) MCAUSER(BOGUS_ID_123)
MONCHL(QMGR) RCVDATA( )
RCVEXIT( ) SCYDATA( )
SCYEXIT( ) SENDDATA( )
SENDEXIT( ) SHARECNV(10)
SSLCAUTH(REQUIRED) SSLCIPH( )
SSLPEER( ) TRPTYPE(TCP)


And here is my CHLAUTH rule.

DISPLAY CHLAUTH (PETER.TEST.1) ALL
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
DESCR( ) CUSTOM( )
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123) USERSRC(MAP)
ALTDATE(2013-10-10) ALTTIME(18.58.23)



I am logged into my PC as pp12345. And every time I connect to this queue manager over the PETER.TEST.1 channel the ID the channel runs as is BOGUS_ID_123. MQRC 2035. Authority Event message shows BOGUS_ID_123. Why is the CHLAUTH rule not kicking in and changing the connection to run as abc123?

If I blank out the MCAUSER on the channel, then I connect as pp12345. I happen to have access to some queues on this QM as this pp12345 ID and I can open those queues. If I do a channel status it shows me running as pp12345, not abc123 (see below). If I try and open some other queues I don't have access to, MQRC 2035 and the Authority Event message shows the pp12345 ID. Again, why is the CHLAUTH rule not kicking in and changing my connection to abc123?

Nothing in the queue manager error logs.


display chstatus(PETER.TEST.1) all
AMQ8417: Display Channel Status details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
BUFSRCVD(9) BUFSSENT(8)
BYTSRCVD(1628) BYTSSENT(1444)
CHSTADA(2013-10-10) CHSTATI(19.42.48)
COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)
COMPRATE(0,0) COMPTIME(0,0)
CONNAME(10.147.130.226) CURRENT
EXITTIME(0,0) HBINT(30)
JOBNAME(0000B7EF00000F73) LOCLADDR(::ffff:99.111.222.99(1414))
LSTMSGDA(2013-10-10) LSTMSGTI(19.42.49)
MCASTAT(RUNNING) MCAUSER(pp12345)
MONCHL(LOW) MSGS(2)
RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)
SSLCERTI( ) SSLKEYDA( )
SSLKEYTI( ) SSLPEER( )
SSLRKEYS(0) STATUS(RUNNING)
STOPREQ(NO) SUBSTATE(RECEIVE)
CURSHCNV(1) MAXSHCNV(10)
RVERSION(07050002) RPRODUCT(MQCC)


Peter Potkay




************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>


________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>
************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
T.Rob
2013-10-14 15:49:58 UTC
Permalink
So have you tried the ***@domain format when specifying MCAUSER in the
channel or mapping rule?





From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 9:36 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



"but are the accounts on the home and office PCs local or domain accounts"

The home and office PC are one and the same, my laptop that I bring with me.



I am logged in as a domain ID on my laptop. I use that same domain ID log in
when I get onto a server with just the MQ Client to use as another test
case.



I never see the domain info when I see the ID displayed in an Authority
Event message or in the MCAUSER field of a running channel instance.





Peter Potkay



From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
Neil Casey
Sent: Monday, October 14, 2013 9:21 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



Hi,



this might not be relevant, but are the accounts on the home and office PCs
local or domain accounts, and is the server using domain accounts?



If your home PC has a local account pp12345, and the RDP machine in the
office uses a domain login (also pp12345 but of course actually a different
account) then that might account for the different behaviour.



However, the manual doesn't mention that domain or SID is checked. it just
says the client asserted userid.



Regards,





Neil Casey

mailto:Neil_Casey-8K57OPj+***@public.gmane.org mobile: +61 414 615 334


















On 15/10/2013, at 12:02 AM, "Costa, D. (Damian)" <DamianC-3zJjxGF14/***@public.gmane.org>
wrote:



Hi,

Peter we're doing the same sort of stuff but on MQ V 7.1 we are also
dialling into the office network via VPN's and such but there is no
connectivity failures to MQ V7.1 qmgrs with chl auth rules enabled.



Looks to me you'll really have to look under the covers here. So no avoiding
a trace file or two I'm afraid.







From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
Potkay, Peter M (CTO Architecture + Engineering)
Sent: 14 October 2013 02:53 PM
To: <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



Interesting. I decided to play around with this some more last night. The
behavior reverted to what I had originally posted - the CHLAUTH rule to map
pp12345 to abc123 was not being invoked even though I was connecting over
the named channel and as that ID.

This morning its working again as expected.

My test cases are identical except for one thing I realized. When I'm
working from home they don't work as expected, when I'm logged in at the
office they work as expected. When I'm working from home I'm coming in over
a VPN tunnel. The MQ Client connection originates from my physical laptop
where I am logged in as pp12345, and the Queue Manager resides on a server
inside our data center.

I originally set up the CHLAUTH rule when I was working from home and never
got the expected mapping to work - my opening post. When I reported it
started working, I was in the office. Last night it stopped working, I was
at home. This morning its working again as I test from the office.

Even though there is no CHLAUTH rule based on IP address I did try the
following when I was working from home. I RDP'ed onto an unrelated server
that had MQ Client installed and repeated the same test. Even though I and
my laptop were at home coming in over the VPN, my test case was executing
directly on the server. The CHLAUTH rule worked. And I tried that same test
this morning in the office, RDP'ing to the other server. It works. So its
not IP based.

It seems the connection over VPN is doing something that causes the CHLAUTH
rule to not fire. Its not IP address related, since I proved coming from
different IPs doesn't matter, and there isn't an IP based CHLAUTH rule
anyway. I thought maybe the ID that was sent by the client was somehow
messed with over the VPN connection, but that's not it because when I tried
to connect over another client channel with a blank MCAUSER and no CHLAUTH
rule the ID shown in the running channel was pp12345. And if I tried to
access a queue I wasn't allowed to the Authority Event showed pp12345.

Very odd. Anyone have any ideas why this is behaving like this?

I'm going to try one more time tonight from home and if the pattern persists
I guess its time to run a trace on the Queue Manager for both test cases
(from the office and from home) and open a PMR.



Peter Potkay



From: MQSeries List [ <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO
Architecture + Engineering)
Sent: Friday, October 11, 2013 10:00 AM
To: <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



Damian,

I suspected that, but when I make a connection over the channel the active
channel shows the ID in use as lowercase.

When I try to access queues I don't have rights to, the Authority Events
show the ID in lowercase as well.



I think everything is using lowercase.





This morning, its working as expected. No changes were made to the channel
or the CHLAUTH rules. The same test cases used yesterday that were not
causing the mapping to kick in are working as expected today. The only thing
done was after I sent the original email I started playing with the RUNCHECK
option of the DISPLAY CHLAUTH command to see what it returned. Its as if the
RUNCHECK gave the QM a kick in the pants to start respecting this USERMAP
CHLAUTH rule. Other CHLAUTH rules (not related to mapping User IDs) were
working fine before this though. New USERMAP rules I have played with this
morning all work right away as expected.





3 : DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345')
ADDRESS('9.999.999.999')

AMQ8878: Display channel authentication record details.

CHLAUTH(PETER.TEST.1) TYPE(USERMAP)

ADDRESS( ) CLNTUSER(pp12345)

MCAUSER(abc123)





By the way, I tried this first without the quotes around the value in the
CLNTUSER field and got "ChlAuth not found". I guess this would be the MQSC
display command folding my ID from lowercase to uppercase and PP12345 not
matching pp12345, so the display command didn't get a hit in that case. But
I do believe its lowercase being used all around during execution.



I'm just puzzled why everything works normally this morning.





Neil,

I agree with you that its trivial to set any ID you want as a client. We
will be using Captialware's Security Exit to do real authentication of the
client on the other end, then using mapping rules to have the connection run
as the ID we want.



Peter Potkay



From: MQSeries List [ <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Costa, D. (Damian)
Sent: Friday, October 11, 2013 6:17 AM
To: <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



We've had issues with this before and it turns out that at the domain level
the account is identified by uppercase values instead of lower case .

What happens if you add a chl auth rule with your clntuser in upper case?



From: MQSeries List [ <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO
Architecture + Engineering)
Sent: 11 October 2013 01:48 AM
To: <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Cannot get CHLAUTH Client ID Mapping to work



My client is MQ 7.5.0.2 on a Windows 7 desktop.

The Queue Manager is MQ 7.5.0.2 on a RHEL 6.4 server.

CHLAUTH is enabled.



DISPLAY QMGR CHLAUTH CMDLEVEL

AMQ8408: Display Queue Manager details.

QMNAME(MYQM) CHLAUTH(ENABLED)

CMDLEVEL(750)





Here's the MQ Client channel I'm testing with on my Lab server.



DIS CHANNEL(PETER.TEST.1) ALL

AMQ8414: Display Channel details.

CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)

ALTDATE(2013-10-10) ALTTIME(18.51.26)

COMPHDR(NONE) COMPMSG(NONE)

DESCR( ) DISCINT(0)

HBINT(30) KAINT(AUTO)

MAXINST(999999999) MAXINSTC(999999999)

MAXMSGL(104857600) MCAUSER(BOGUS_ID_123)

MONCHL(QMGR) RCVDATA( )

RCVEXIT( ) SCYDATA( )

SCYEXIT( ) SENDDATA( )

SENDEXIT( ) SHARECNV(10)

SSLCAUTH(REQUIRED) SSLCIPH( )

SSLPEER( ) TRPTYPE(TCP)





And here is my CHLAUTH rule.



DISPLAY CHLAUTH (PETER.TEST.1) ALL

AMQ8878: Display channel authentication record details.

CHLAUTH(PETER.TEST.1) TYPE(USERMAP)

DESCR( ) CUSTOM( )

ADDRESS( ) CLNTUSER(pp12345)

MCAUSER(abc123) USERSRC(MAP)

ALTDATE(2013-10-10) ALTTIME(18.58.23)







I am logged into my PC as pp12345. And every time I connect to this queue
manager over the PETER.TEST.1 channel the ID the channel runs as is
BOGUS_ID_123. MQRC 2035. Authority Event message shows BOGUS_ID_123. Why is
the CHLAUTH rule not kicking in and changing the connection to run as
abc123?



If I blank out the MCAUSER on the channel, then I connect as pp12345. I
happen to have access to some queues on this QM as this pp12345 ID and I can
open those queues. If I do a channel status it shows me running as pp12345,
not abc123 (see below). If I try and open some other queues I don't have
access to, MQRC 2035 and the Authority Event message shows the pp12345 ID.
Again, why is the CHLAUTH rule not kicking in and changing my connection to
abc123?



Nothing in the queue manager error logs.





display chstatus(PETER.TEST.1) all

AMQ8417: Display Channel Status details.

CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)

BUFSRCVD(9) BUFSSENT(8)

BYTSRCVD(1628) BYTSSENT(1444)

CHSTADA(2013-10-10) CHSTATI(19.42.48)

COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)

COMPRATE(0,0) COMPTIME(0,0)

CONNAME(10.147.130.226) CURRENT

EXITTIME(0,0) HBINT(30)

JOBNAME(0000B7EF00000F73) LOCLADDR(::ffff:99.111.222.99(1414))

LSTMSGDA(2013-10-10) LSTMSGTI(19.42.49)

MCASTAT(RUNNING) MCAUSER(pp12345)

MONCHL(LOW) MSGS(2)

RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)

SSLCERTI( ) SSLKEYDA( )

SSLKEYTI( ) SSLPEER( )

SSLRKEYS(0) STATUS(RUNNING)

STOPREQ(NO) SUBSTATE(RECEIVE)

CURSHCNV(1) MAXSHCNV(10)

RVERSION(07050002) RPRODUCT(MQCC)





Peter Potkay







************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************



_____

<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at
<http://www.lsoft.com/resources/manuals.asp> http://www.lsoft.com


********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ <http://www.nedbank.co.za/terms/DirectorsNedbank.htm>
http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ <http://www.nedbank.co.za/terms/EmailDisclaimer.htm>
http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************



_____

<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at
<http://www.lsoft.com/resources/manuals.asp> http://www.lsoft.com

************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************



_____

<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at
<http://www.lsoft.com/resources/manuals.asp> http://www.lsoft.com

************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************



_____

<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at
<http://www.lsoft.com/resources/manuals.asp> http://www.lsoft.com


********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ <http://www.nedbank.co.za/terms/DirectorsNedbank.htm>
http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ <http://www.nedbank.co.za/terms/EmailDisclaimer.htm>
http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************



_____

<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at
<http://www.lsoft.com/resources/manuals.asp> http://www.lsoft.com





_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************



_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>


To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Potkay, Peter M (CTO Architecture + Engineering)
2013-10-14 16:58:01 UTC
Permalink
I did not for the MCAUSER because I only have a dummy bogus ID hard coded in there as a blocker.

I did not for the CHLAUTH rule because none of the examples in the Info Center mention needing to specify the domain. And when the Authority Events were thrown the ID listed in the event message did not have a domain, so I wanted to supply that exact ID into the CHLAUTH rule. I looked in the CHLAUTH presentation from the 2013 MQ Tech Conference and the only time a domain is used in the examples is once or twice on the ID to be used for the effective MCAUSER, never for the incoming ID to be matched against.


Peter Potkay


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of T.Rob
Sent: Monday, October 14, 2013 11:50 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

So have you tried the ***@domain format when specifying MCAUSER in the channel or mapping rule?


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 9:36 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

"but are the accounts on the home and office PCs local or domain accounts"
The home and office PC are one and the same, my laptop that I bring with me.

I am logged in as a domain ID on my laptop. I use that same domain ID log in when I get onto a server with just the MQ Client to use as another test case.

I never see the domain info when I see the ID displayed in an Authority Event message or in the MCAUSER field of a running channel instance.


Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Neil Casey
Sent: Monday, October 14, 2013 9:21 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Hi,

this might not be relevant, but are the accounts on the home and office PCs local or domain accounts, and is the server using domain accounts?

If your home PC has a local account pp12345, and the RDP machine in the office uses a domain login (also pp12345 but of course actually a different account) then that might account for the different behaviour.

However, the manual doesn't mention that domain or SID is checked... it just says the client asserted userid.

Regards,


Neil Casey
mailto:Neil_Casey-8K57OPj+***@public.gmane.org mobile: +61 414 615 334

[cid:image001.png-VX7vPPtj1Q/***@public.gmane.org]




On 15/10/2013, at 12:02 AM, "Costa, D. (Damian)" <DamianC-3zJjxGF14/***@public.gmane.org<mailto:DamianC-3zJjxGF14/***@public.gmane.org>> wrote:

Hi,
Peter we're doing the same sort of stuff but on MQ V 7.1 we are also dialling into the office network via VPN's and such but there is no connectivity failures to MQ V7.1 qmgrs with chl auth rules enabled.

Looks to me you'll really have to look under the covers here. So no avoiding a trace file or two I'm afraid.


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 14 October 2013 02:53 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Interesting. I decided to play around with this some more last night. The behavior reverted to what I had originally posted - the CHLAUTH rule to map pp12345 to abc123 was not being invoked even though I was connecting over the named channel and as that ID.

This morning its working again as expected.

My test cases are identical except for one thing I realized. When I'm working from home they don't work as expected, when I'm logged in at the office they work as expected. When I'm working from home I'm coming in over a VPN tunnel. The MQ Client connection originates from my physical laptop where I am logged in as pp12345, and the Queue Manager resides on a server inside our data center.

I originally set up the CHLAUTH rule when I was working from home and never got the expected mapping to work - my opening post. When I reported it started working, I was in the office. Last night it stopped working, I was at home. This morning its working again as I test from the office.

Even though there is no CHLAUTH rule based on IP address I did try the following when I was working from home. I RDP'ed onto an unrelated server that had MQ Client installed and repeated the same test. Even though I and my laptop were at home coming in over the VPN, my test case was executing directly on the server. The CHLAUTH rule worked. And I tried that same test this morning in the office, RDP'ing to the other server. It works. So its not IP based.

It seems the connection over VPN is doing something that causes the CHLAUTH rule to not fire. Its not IP address related, since I proved coming from different IPs doesn't matter, and there isn't an IP based CHLAUTH rule anyway. I thought maybe the ID that was sent by the client was somehow messed with over the VPN connection, but that's not it because when I tried to connect over another client channel with a blank MCAUSER and no CHLAUTH rule the ID shown in the running channel was pp12345. And if I tried to access a queue I wasn't allowed to the Authority Event showed pp12345.

Very odd. Anyone have any ideas why this is behaving like this?

I'm going to try one more time tonight from home and if the pattern persists I guess its time to run a trace on the Queue Manager for both test cases (from the office and from home) and open a PMR.

Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Friday, October 11, 2013 10:00 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Damian,
I suspected that, but when I make a connection over the channel the active channel shows the ID in use as lowercase.
When I try to access queues I don't have rights to, the Authority Events show the ID in lowercase as well.

I think everything is using lowercase.


This morning, its working as expected. No changes were made to the channel or the CHLAUTH rules. The same test cases used yesterday that were not causing the mapping to kick in are working as expected today. The only thing done was after I sent the original email I started playing with the RUNCHECK option of the DISPLAY CHLAUTH command to see what it returned. Its as if the RUNCHECK gave the QM a kick in the pants to start respecting this USERMAP CHLAUTH rule. Other CHLAUTH rules (not related to mapping User IDs) were working fine before this though. New USERMAP rules I have played with this morning all work right away as expected.


3 : DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('9.999.999.999')
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123)


By the way, I tried this first without the quotes around the value in the CLNTUSER field and got "ChlAuth not found". I guess this would be the MQSC display command folding my ID from lowercase to uppercase and PP12345 not matching pp12345, so the display command didn't get a hit in that case. But I do believe its lowercase being used all around during execution.

I'm just puzzled why everything works normally this morning.


Neil,
I agree with you that its trivial to set any ID you want as a client. We will be using Captialware's Security Exit to do real authentication of the client on the other end, then using mapping rules to have the connection run as the ID we want.

Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Costa, D. (Damian)
Sent: Friday, October 11, 2013 6:17 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

We've had issues with this before and it turns out that at the domain level the account is identified by uppercase values instead of lower case .
What happens if you add a chl auth rule with your clntuser in upper case?

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 11 October 2013 01:48 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Cannot get CHLAUTH Client ID Mapping to work

My client is MQ 7.5.0.2 on a Windows 7 desktop.
The Queue Manager is MQ 7.5.0.2 on a RHEL 6.4 server.
CHLAUTH is enabled.

DISPLAY QMGR CHLAUTH CMDLEVEL
AMQ8408: Display Queue Manager details.
QMNAME(MYQM) CHLAUTH(ENABLED)
CMDLEVEL(750)


Here's the MQ Client channel I'm testing with on my Lab server.

DIS CHANNEL(PETER.TEST.1) ALL
AMQ8414: Display Channel details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
ALTDATE(2013-10-10) ALTTIME(18.51.26)
COMPHDR(NONE) COMPMSG(NONE)
DESCR( ) DISCINT(0)
HBINT(30) KAINT(AUTO)
MAXINST(999999999) MAXINSTC(999999999)
MAXMSGL(104857600) MCAUSER(BOGUS_ID_123)
MONCHL(QMGR) RCVDATA( )
RCVEXIT( ) SCYDATA( )
SCYEXIT( ) SENDDATA( )
SENDEXIT( ) SHARECNV(10)
SSLCAUTH(REQUIRED) SSLCIPH( )
SSLPEER( ) TRPTYPE(TCP)


And here is my CHLAUTH rule.

DISPLAY CHLAUTH (PETER.TEST.1) ALL
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
DESCR( ) CUSTOM( )
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123) USERSRC(MAP)
ALTDATE(2013-10-10) ALTTIME(18.58.23)



I am logged into my PC as pp12345. And every time I connect to this queue manager over the PETER.TEST.1 channel the ID the channel runs as is BOGUS_ID_123. MQRC 2035. Authority Event message shows BOGUS_ID_123. Why is the CHLAUTH rule not kicking in and changing the connection to run as abc123?

If I blank out the MCAUSER on the channel, then I connect as pp12345. I happen to have access to some queues on this QM as this pp12345 ID and I can open those queues. If I do a channel status it shows me running as pp12345, not abc123 (see below). If I try and open some other queues I don't have access to, MQRC 2035 and the Authority Event message shows the pp12345 ID. Again, why is the CHLAUTH rule not kicking in and changing my connection to abc123?

Nothing in the queue manager error logs.


display chstatus(PETER.TEST.1) all
AMQ8417: Display Channel Status details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
BUFSRCVD(9) BUFSSENT(8)
BYTSRCVD(1628) BYTSSENT(1444)
CHSTADA(2013-10-10) CHSTATI(19.42.48)
COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)
COMPRATE(0,0) COMPTIME(0,0)
CONNAME(10.147.130.226) CURRENT
EXITTIME(0,0) HBINT(30)
JOBNAME(0000B7EF00000F73) LOCLADDR(::ffff:99.111.222.99(1414))
LSTMSGDA(2013-10-10) LSTMSGTI(19.42.49)
MCASTAT(RUNNING) MCAUSER(pp12345)
MONCHL(LOW) MSGS(2)
RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)
SSLCERTI( ) SSLKEYDA( )
SSLKEYTI( ) SSLPEER( )
SSLRKEYS(0) STATUS(RUNNING)
STOPREQ(NO) SUBSTATE(RECEIVE)
CURSHCNV(1) MAXSHCNV(10)
RVERSION(07050002) RPRODUCT(MQCC)


Peter Potkay




************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>


________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>
************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Potkay, Peter M (CTO Architecture + Engineering)
2013-10-15 00:54:10 UTC
Permalink
Here is the test using the IP address of the client server inside the data center. This test case has the mapping take effect, and the runcheck shows that. Actual IP address values changed to protect the innocent, although the # of digits is the same as the actual IP address.

DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('10.320.242.284')
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123)



Here is the test using the IP address of my laptop coming in over VPN, as seen from the queue manager. This test case is the one where the mapping does NOT take effect. Actual IP address values changed to protect the innocent, although the # of digits is the same as the actual IP address.

DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('10.257.2.50')
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123)

According to the runcheck, and common sense, this should also cause the ID to be flipped from pp12345 to abc123, but for some crazy reason it does not when I'm client connected to the QM over VPN.


Peter Potkay


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 12:58 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

I did not for the MCAUSER because I only have a dummy bogus ID hard coded in there as a blocker.

I did not for the CHLAUTH rule because none of the examples in the Info Center mention needing to specify the domain. And when the Authority Events were thrown the ID listed in the event message did not have a domain, so I wanted to supply that exact ID into the CHLAUTH rule. I looked in the CHLAUTH presentation from the 2013 MQ Tech Conference and the only time a domain is used in the examples is once or twice on the ID to be used for the effective MCAUSER, never for the incoming ID to be matched against.


Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of T.Rob
Sent: Monday, October 14, 2013 11:50 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

So have you tried the ***@domain format when specifying MCAUSER in the channel or mapping rule?


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 9:36 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

"but are the accounts on the home and office PCs local or domain accounts"
The home and office PC are one and the same, my laptop that I bring with me.

I am logged in as a domain ID on my laptop. I use that same domain ID log in when I get onto a server with just the MQ Client to use as another test case.

I never see the domain info when I see the ID displayed in an Authority Event message or in the MCAUSER field of a running channel instance.


Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Neil Casey
Sent: Monday, October 14, 2013 9:21 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Hi,

this might not be relevant, but are the accounts on the home and office PCs local or domain accounts, and is the server using domain accounts?

If your home PC has a local account pp12345, and the RDP machine in the office uses a domain login (also pp12345 but of course actually a different account) then that might account for the different behaviour.

However, the manual doesn't mention that domain or SID is checked... it just says the client asserted userid.

Regards,


Neil Casey
mailto:Neil_Casey-8K57OPj+***@public.gmane.org mobile: +61 414 615 334

[cid:image001.png-***@public.gmane.org]




On 15/10/2013, at 12:02 AM, "Costa, D. (Damian)" <DamianC-3zJjxGF14/***@public.gmane.org<mailto:DamianC-3zJjxGF14/***@public.gmane.org>> wrote:

Hi,
Peter we're doing the same sort of stuff but on MQ V 7.1 we are also dialling into the office network via VPN's and such but there is no connectivity failures to MQ V7.1 qmgrs with chl auth rules enabled.

Looks to me you'll really have to look under the covers here. So no avoiding a trace file or two I'm afraid.


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 14 October 2013 02:53 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Interesting. I decided to play around with this some more last night. The behavior reverted to what I had originally posted - the CHLAUTH rule to map pp12345 to abc123 was not being invoked even though I was connecting over the named channel and as that ID.

This morning its working again as expected.

My test cases are identical except for one thing I realized. When I'm working from home they don't work as expected, when I'm logged in at the office they work as expected. When I'm working from home I'm coming in over a VPN tunnel. The MQ Client connection originates from my physical laptop where I am logged in as pp12345, and the Queue Manager resides on a server inside our data center.

I originally set up the CHLAUTH rule when I was working from home and never got the expected mapping to work - my opening post. When I reported it started working, I was in the office. Last night it stopped working, I was at home. This morning its working again as I test from the office.

Even though there is no CHLAUTH rule based on IP address I did try the following when I was working from home. I RDP'ed onto an unrelated server that had MQ Client installed and repeated the same test. Even though I and my laptop were at home coming in over the VPN, my test case was executing directly on the server. The CHLAUTH rule worked. And I tried that same test this morning in the office, RDP'ing to the other server. It works. So its not IP based.

It seems the connection over VPN is doing something that causes the CHLAUTH rule to not fire. Its not IP address related, since I proved coming from different IPs doesn't matter, and there isn't an IP based CHLAUTH rule anyway. I thought maybe the ID that was sent by the client was somehow messed with over the VPN connection, but that's not it because when I tried to connect over another client channel with a blank MCAUSER and no CHLAUTH rule the ID shown in the running channel was pp12345. And if I tried to access a queue I wasn't allowed to the Authority Event showed pp12345.

Very odd. Anyone have any ideas why this is behaving like this?

I'm going to try one more time tonight from home and if the pattern persists I guess its time to run a trace on the Queue Manager for both test cases (from the office and from home) and open a PMR.

Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Friday, October 11, 2013 10:00 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Damian,
I suspected that, but when I make a connection over the channel the active channel shows the ID in use as lowercase.
When I try to access queues I don't have rights to, the Authority Events show the ID in lowercase as well.

I think everything is using lowercase.


This morning, its working as expected. No changes were made to the channel or the CHLAUTH rules. The same test cases used yesterday that were not causing the mapping to kick in are working as expected today. The only thing done was after I sent the original email I started playing with the RUNCHECK option of the DISPLAY CHLAUTH command to see what it returned. Its as if the RUNCHECK gave the QM a kick in the pants to start respecting this USERMAP CHLAUTH rule. Other CHLAUTH rules (not related to mapping User IDs) were working fine before this though. New USERMAP rules I have played with this morning all work right away as expected.


3 : DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('9.999.999.999')
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123)


By the way, I tried this first without the quotes around the value in the CLNTUSER field and got "ChlAuth not found". I guess this would be the MQSC display command folding my ID from lowercase to uppercase and PP12345 not matching pp12345, so the display command didn't get a hit in that case. But I do believe its lowercase being used all around during execution.

I'm just puzzled why everything works normally this morning.


Neil,
I agree with you that its trivial to set any ID you want as a client. We will be using Captialware's Security Exit to do real authentication of the client on the other end, then using mapping rules to have the connection run as the ID we want.

Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Costa, D. (Damian)
Sent: Friday, October 11, 2013 6:17 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

We've had issues with this before and it turns out that at the domain level the account is identified by uppercase values instead of lower case .
What happens if you add a chl auth rule with your clntuser in upper case?

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 11 October 2013 01:48 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Cannot get CHLAUTH Client ID Mapping to work

My client is MQ 7.5.0.2 on a Windows 7 desktop.
The Queue Manager is MQ 7.5.0.2 on a RHEL 6.4 server.
CHLAUTH is enabled.

DISPLAY QMGR CHLAUTH CMDLEVEL
AMQ8408: Display Queue Manager details.
QMNAME(MYQM) CHLAUTH(ENABLED)
CMDLEVEL(750)


Here's the MQ Client channel I'm testing with on my Lab server.

DIS CHANNEL(PETER.TEST.1) ALL
AMQ8414: Display Channel details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
ALTDATE(2013-10-10) ALTTIME(18.51.26)
COMPHDR(NONE) COMPMSG(NONE)
DESCR( ) DISCINT(0)
HBINT(30) KAINT(AUTO)
MAXINST(999999999) MAXINSTC(999999999)
MAXMSGL(104857600) MCAUSER(BOGUS_ID_123)
MONCHL(QMGR) RCVDATA( )
RCVEXIT( ) SCYDATA( )
SCYEXIT( ) SENDDATA( )
SENDEXIT( ) SHARECNV(10)
SSLCAUTH(REQUIRED) SSLCIPH( )
SSLPEER( ) TRPTYPE(TCP)


And here is my CHLAUTH rule.

DISPLAY CHLAUTH (PETER.TEST.1) ALL
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
DESCR( ) CUSTOM( )
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123) USERSRC(MAP)
ALTDATE(2013-10-10) ALTTIME(18.58.23)



I am logged into my PC as pp12345. And every time I connect to this queue manager over the PETER.TEST.1 channel the ID the channel runs as is BOGUS_ID_123. MQRC 2035. Authority Event message shows BOGUS_ID_123. Why is the CHLAUTH rule not kicking in and changing the connection to run as abc123?

If I blank out the MCAUSER on the channel, then I connect as pp12345. I happen to have access to some queues on this QM as this pp12345 ID and I can open those queues. If I do a channel status it shows me running as pp12345, not abc123 (see below). If I try and open some other queues I don't have access to, MQRC 2035 and the Authority Event message shows the pp12345 ID. Again, why is the CHLAUTH rule not kicking in and changing my connection to abc123?

Nothing in the queue manager error logs.


display chstatus(PETER.TEST.1) all
AMQ8417: Display Channel Status details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
BUFSRCVD(9) BUFSSENT(8)
BYTSRCVD(1628) BYTSSENT(1444)
CHSTADA(2013-10-10) CHSTATI(19.42.48)
COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)
COMPRATE(0,0) COMPTIME(0,0)
CONNAME(10.147.130.226) CURRENT
EXITTIME(0,0) HBINT(30)
JOBNAME(0000B7EF00000F73) LOCLADDR(::ffff:99.111.222.99(1414))
LSTMSGDA(2013-10-10) LSTMSGTI(19.42.49)
MCASTAT(RUNNING) MCAUSER(pp12345)
MONCHL(LOW) MSGS(2)
RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)
SSLCERTI( ) SSLKEYDA( )
SSLKEYTI( ) SSLPEER( )
SSLRKEYS(0) STATUS(RUNNING)
STOPREQ(NO) SUBSTATE(RECEIVE)
CURSHCNV(1) MAXSHCNV(10)
RVERSION(07050002) RPRODUCT(MQCC)


Peter Potkay




************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>


________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>
************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
d***@public.gmane.org
2013-10-15 13:40:13 UTC
Permalink
very true.... I see this behavior all the time from our various Win servers, which has caused me to put multiple Id's into the MQAUSX ini file to resolve to a "standard" MCAUSER - after some trial and error, I believe I have a "predictable" set - although I once saw a change in behavior after a round of Windows patching... the other thing I have done is to have the Win guys create a "fixed" owner for IIS app pools, which gives me a reliable "base" Id. to work with.

----- Original Message -----

From: "T.Rob" <t.rob-CkT6zf+urXSzW/GOMZKyElesiRL1/***@public.gmane.org>
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Sent: Monday, October 14, 2013 11:06:13 PM
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



Hi Peter,



I've been trying for YEARS to get the Infocenter setmqaut examples all changed to use –g instead of –p. There is only one case where the –p does what you expect, it's Windows and even there the technique isn't at all reliable. Here's the scoop.



When you issue setmqaut in Windows, it stores the SID that is resolved. You give it a string and then Windows name resolution looks first at the local box, then at all the domains. The OAM saves the string * and * the SID. Now let's see what happens when you actually try to connect.



If you connect from a Windows device, the SID provided is that of the ID as resolved by the WMQ client. Sometimes that ID is local, sometimes it is the domain account. Sometimes it can actually change depending on whether you are connected to the network * before * or * after * you log into Windows. Depending on the AD policy you might use a cached ID or a local account.



When the Windows client connects, the QMgr gets the SID and tries to resolve it. Whether it resolves depends on the interaction of AD policy between the WMQ host, the laptop and the domain. In some cases a local account is resolved when the laptop is on the VPN but not when it is connected directly to the intranet. In some cases the laptop uses a domain account at all times. Depends on AD policy. The ability of the QMgr to resolve that SID may change depending on * which * SID is presented and on the connection itself. Assuming the ID presented by the laptop is static or at least is good, and the QMgr's host still can't resolve it, another issue is the trust relationship between the QMgr's host and the domains it knows about. The SID can live in only one domain and if that domain either drops out of the search path or refuses to resolve the laptop whilst connected remotely due to reduced trust of remote devices, again an intermittent failure.



Sometimes though the client connection itself cannot resolve the SID. This can be because it is a domain account and the domain isn't available or that policies alter the domain trust when the device is remote. Other times it is because the ID presented is set through configuration to one that simply does not exist and can't be resolved by Windows. In all these cases a string is sent without a SID, just like with non-Windows platforms. When a string is received by the QMgr it tries to resolve the string using the local domain search path. First local, then the domains that it knows about. The * first * domain to resolve the string returns a SID. If that SID matches what the QMgr resolved the very first time, you are golden. However, if the ID in question exists in more than one place in the search path it can resolve to a SID that does * not * match what setmqaut stored. Depends on the search path and that can change at run time. Again, this can lead to intermittent failures.



I believe there's a case where the client sends a SID that doesn't match the string. For example, your JMS app sets the ID to "mqm" but the client sends the SID of the local user. Not sure if that's true and if so which client versions it applies to. Also, I do not know whether the CHLAUTH rules evaluate the SID, the string or both, when evaluating matches on Client ID.



The only way I've ever found to mitigate all of this is to use a fully-qualified value such as ***@workstationname or ***@domain. This must be done when issuing the setmqaut command and then subsequently for every configuration reference to the ID such as MCAUSER or CHLAUTH. I've stated this in all my conference sessions and tried to influence others to do so in theirs and even had some luck in getting the Infocenter updated but it is far from what I would consider to be well documented.



Part of the problem is that none of this is unique to WMQ. * Any * software that tries to resolve strings to Windows accounts has all of these issues. In fact, I believe that is part of the reason it's not well documented by IBM – I think it's generally considered to be a Windows accounts issue and not strictly a WMQ issue. To a deeply skilled AD person, resolving SIDs or string values through the domain search path is well known. To WMQ admins it is a black art. That's pretty much the case with anything adjacent to WMQ. The mechanics of X.509 certificates, signing, the TLS protocol, etc. are all well documented elsewhere. The Infocenter docs on these began to improve when it became clear that WMQ customers weren't finding these external sources and the difficulty in doing anything with TLS made it a WMQ problem. Same thing with the WMQ administrative overlap in PowerHA, VCS, MSCS, etc. All generally considered out of scope for the WMQ Infocenter but would be extremely helpful for WMQ admins if more of it were there.



So, whip up a SVRCONN with no mapping and put ***@domain-or-host in the MCAUSER and keep changing the domain-or-host part until you find one that works. Then put that fully-qualified value in the channel mapping rule for your target channel. If the client-facing part of the CHLAUTH (the part that evaluates the client ID on the connection) is resolving strings, this will work all the time. If not you'd actually have to know all the ***@host and ***@domains that could be sent in.



Filling in for Roger, we * know * that MQAUSX will resolve the string presented by the client ID and not the SID. If you have an MCAUSER that you know works but CHLAUTH is still intermittent, MQAUSX can resolve the string presented and map to a known good MCAUSER (also in ***@domain format) so it works consistently.



Happy to work with you offline on this. Turns out I have a bit of time this week. If this doesn't fix it, call me.



-- T.Rob






From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 20:54 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work




Here is the test using the IP address of the client server inside the data center. This test case has the mapping take effect, and the runcheck shows that. Actual IP address values changed to protect the innocent, although the # of digits is the same as the actual IP address.



DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('10.320.242.284')

AMQ8878: Display channel authentication record details.

CHLAUTH(PETER.TEST.1) TYPE(USERMAP)

ADDRESS( ) CLNTUSER(pp12345)

MCAUSER(abc123)







Here is the test using the IP address of my laptop coming in over VPN, as seen from the queue manager. This test case is the one where the mapping does NOT take effect. Actual IP address values changed to protect the innocent, although the # of digits is the same as the actual IP address.



DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('10.257.2.50')

AMQ8878: Display channel authentication record details.

CHLAUTH(PETER.TEST.1) TYPE(USERMAP)

ADDRESS( ) CLNTUSER(pp12345)

MCAUSER(abc123)



According to the runcheck, and common sense, this should also cause the ID to be flipped from pp12345 to abc123, but for some crazy reason it does not when I’m client connected to the QM over VPN.






Peter Potkay





From: MQSeries List [ mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org ] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 12:58 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work




I did not for the MCAUSER because I only have a dummy bogus ID hard coded in there as a blocker.



I did not for the CHLAUTH rule because none of the examples in the Info Center mention needing to specify the domain. And when the Authority Events were thrown the ID listed in the event message did not have a domain, so I wanted to supply that exact ID into the CHLAUTH rule. I looked in the CHLAUTH presentation from the 2013 MQ Tech Conference and the only time a domain is used in the examples is once or twice on the ID to be used for the effective MCAUSER, never for the incoming ID to be matched against.






Peter Potkay





From: MQSeries List [ mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org ] On Behalf Of T.Rob
Sent: Monday, October 14, 2013 11:50 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work




So have you tried the ***@domain format when specifying MCAUSER in the channel or mapping rule?






From: MQSeries List [ mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org ] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 9:36 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work




“ but are the accounts on the home and office PCs local or domain accounts ”

The home and office PC are one and the same, my laptop that I bring with me.



I am logged in as a domain ID on my laptop. I use that same domain ID log in when I get onto a server with just the MQ Client to use as another test case.



I never see the domain info when I see the ID displayed in an Authority Event message or in the MCAUSER field of a running channel instance.






Peter Potkay





From: MQSeries List [ mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org ] On Behalf Of Neil Casey
Sent: Monday, October 14, 2013 9:21 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work




Hi,





this might not be relevant, but are the accounts on the home and office PCs local or domain accounts, and is the server using domain accounts?





If your home PC has a local account pp12345, and the RDP machine in the office uses a domain login (also pp12345 but of course actually a different account) then that might account for the different behaviour.





However, the manual doesn't mention that domain or SID is checked
 it just says the client asserted userid.





Regards,








Neil Casey


mailto:Neil_Casey-8K57OPj+***@public.gmane.org mobile: +61 414 615 334














On 15/10/2013, at 12:02 AM, "Costa, D. (Damian)" < DamianC-3zJjxGF14/***@public.gmane.org > wrote:





Hi,


Peter we’re doing the same sort of stuff but on MQ V 7.1 we are also dialling into the office network via VPN’s and such but there is no connectivity failures to MQ V7.1 qmgrs with chl auth rules enabled.





Looks to me you’ll really have to look under the covers here. So no avoiding a trace file or two I’m afraid.








From: MQSeries List [ mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org ] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 14 October 2013 02:53 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work





Interesting. I decided to play around with this some more last night. The behavior reverted to what I had originally posted - the CHLAUTH rule to map pp12345 to abc123 was not being invoked even though I was connecting over the named channel and as that ID.



This morning its working again as expected.



My test cases are identical except for one thing I realized. When I'm working from home they don't work as expected, when I'm logged in at the office they work as expected. When I'm working from home I'm coming in over a VPN tunnel. The MQ Client connection originates from my physical laptop where I am logged in as pp12345, and the Queue Manager resides on a server inside our data center.



I originally set up the CHLAUTH rule when I was working from home and never got the expected mapping to work - my opening post. When I reported it started working, I was in the office. Last night it stopped working, I was at home. This morning its working again as I test from the office.



Even though there is no CHLAUTH rule based on IP address I did try the following when I was working from home. I RDP'ed onto an unrelated server that had MQ Client installed and repeated the same test. Even though I and my laptop were at home coming in over the VPN, my test case was executing directly on the server. The CHLAUTH rule worked. And I tried that same test this morning in the office, RDP'ing to the other server. It works. So its not IP based.



It seems the connection over VPN is doing something that causes the CHLAUTH rule to not fire. Its not IP address related, since I proved coming from different IPs doesn't matter, and there isn't an IP based CHLAUTH rule anyway. I thought maybe the ID that was sent by the client was somehow messed with over the VPN connection, but that's not it because when I tried to connect over another client channel with a blank MCAUSER and no CHLAUTH rule the ID shown in the running channel was pp12345. And if I tried to access a queue I wasn't allowed to the Authority Event showed pp12345.



Very odd. Anyone have any ideas why this is behaving like this?



I'm going to try one more time tonight from home and if the pattern persists I guess its time to run a trace on the Queue Manager for both test cases (from the office and from home) and open a PMR.





Peter Potkay





From: MQSeries List [ mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org ] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Friday, October 11, 2013 10:00 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work





Damian,


I suspected that, but when I make a connection over the channel the active channel shows the ID in use as lowercase.


When I try to access queues I don’t have rights to, the Authority Events show the ID in lowercase as well.





I think everything is using lowercase.








This morning, its working as expected. No changes were made to the channel or the CHLAUTH rules. The same test cases used yesterday that were not causing the mapping to kick in are working as expected today. The only thing done was after I sent the original email I started playing with the RUNCHECK option of the DISPLAY CHLAUTH command to see what it returned. Its as if the RUNCHECK gave the QM a kick in the pants to start respecting this USERMAP CHLAUTH rule. Other CHLAUTH rules (not related to mapping User IDs) were working fine before this though. New USERMAP rules I have played with this morning all work right away as expected.








3 : DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('9.999.999.999')


AMQ8878: Display channel authentication record details.


CHLAUTH(PETER.TEST.1) TYPE(USERMAP)


ADDRESS( ) CLNTUSER(pp12345)


MCAUSER(abc123)








By the way, I tried this first without the quotes around the value in the CLNTUSER field and got “ChlAuth not found”. I guess this would be the MQSC display command folding my ID from lowercase to uppercase and PP12345 not matching pp12345, so the display command didn’t get a hit in that case. But I do believe its lowercase being used all around during execution.





I’m just puzzled why everything works normally this morning.








Neil,


I agree with you that its trivial to set any ID you want as a client. We will be using Captialware’s Security Exit to do real authentication of the client on the other end, then using mapping rules to have the connection run as the ID we want.





Peter Potkay





From: MQSeries List [ mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org ] On Behalf Of Costa, D. (Damian)
Sent: Friday, October 11, 2013 6:17 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work





We’ve had issues with this before and it turns out that at the domain level the account is identified by uppercase values instead of lower case .


What happens if you add a chl auth rule with your clntuser in upper case?





From: MQSeries List [ mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org ] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 11 October 2013 01:48 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Cannot get CHLAUTH Client ID Mapping to work





My client is MQ 7.5.0.2 on a Windows 7 desktop.


The Queue Manager is MQ 7.5.0.2 on a RHEL 6.4 server.


CHLAUTH is enabled.





DISPLAY QMGR CHLAUTH CMDLEVEL


AMQ8408: Display Queue Manager details.


QMNAME(MYQM) CHLAUTH(ENABLED)


CMDLEVEL(750)








Here’s the MQ Client channel I’m testing with on my Lab server.





DIS CHANNEL(PETER.TEST.1) ALL


AMQ8414: Display Channel details.


CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)


ALTDATE(2013-10-10) ALTTIME(18.51.26)


COMPHDR(NONE) COMPMSG(NONE)


DESCR( ) DISCINT(0)


HBINT(30) KAINT(AUTO)


MAXINST(999999999) MAXINSTC(999999999)


MAXMSGL(104857600) MCAUSER(BOGUS_ID_123)


MONCHL(QMGR) RCVDATA( )


RCVEXIT( ) SCYDATA( )


SCYEXIT( ) SENDDATA( )


SENDEXIT( ) SHARECNV(10)


SSLCAUTH(REQUIRED) SSLCIPH( )


SSLPEER( ) TRPTYPE(TCP)








And here is my CHLAUTH rule.





DISPLAY CHLAUTH (PETER.TEST.1) ALL


AMQ8878: Display channel authentication record details.


CHLAUTH(PETER.TEST.1) TYPE(USERMAP)


DESCR( ) CUSTOM( )


ADDRESS( ) CLNTUSER(pp12345)


MCAUSER(abc123) USERSRC(MAP)


ALTDATE(2013-10-10) ALTTIME(18.58.23)











I am logged into my PC as pp12345. And every time I connect to this queue manager over the PETER.TEST.1 channel the ID the channel runs as is BOGUS_ID_123. MQRC 2035. Authority Event message shows BOGUS_ID_123. Why is the CHLAUTH rule not kicking in and changing the connection to run as abc123?





If I blank out the MCAUSER on the channel, then I connect as pp12345. I happen to have access to some queues on this QM as this pp12345 ID and I can open those queues. If I do a channel status it shows me running as pp12345, not abc123 (see below). If I try and open some other queues I don’t have access to, MQRC 2035 and the Authority Event message shows the pp12345 ID. Again, why is the CHLAUTH rule not kicking in and changing my connection to abc123?





Nothing in the queue manager error logs.








display chstatus(PETER.TEST.1) all


AMQ8417: Display Channel Status details.


CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)


BUFSRCVD(9) BUFSSENT(8)


BYTSRCVD(1628) BYTSSENT(1444)


CHSTADA(2013-10-10) CHSTATI(19.42.48)


COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)


COMPRATE(0,0) COMPTIME(0,0)


CONNAME(10.147.130.226) CURRENT


EXITTIME(0,0) HBINT(30)


JOBNAME(0000B7EF00000F73) LOCLADDR(::ffff:99.111.222.99(1414))


LSTMSGDA(2013-10-10) LSTMSGTI(19.42.49)


MCASTAT(RUNNING) MCAUSER(pp12345)


MONCHL(LOW) MSGS(2)


RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)


SSLCERTI( ) SSLKEYDA( )


SSLKEYTI( ) SSLPEER( )


SSLRKEYS(0) STATUS(RUNNING)


STOPREQ(NO) SUBSTATE(RECEIVE)


CURSHCNV(1) MAXSHCNV(10)


RVERSION(07050002) RPRODUCT(MQCC)








Peter Potkay











************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************






List Archive - Manage Your List Settings - Unsubscribe

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com


********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************






List Archive - Manage Your List Settings - Unsubscribe

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************






List Archive - Manage Your List Settings - Unsubscribe

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************






List Archive - Manage Your List Settings - Unsubscribe

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com


********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************





List Archive - Manage Your List Settings - Unsubscribe

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com









List Archive - Manage Your List Settings - Unsubscribe

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************





List Archive - Manage Your List Settings - Unsubscribe

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com





List Archive - Manage Your List Settings - Unsubscribe

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************





List Archive - Manage Your List Settings - Unsubscribe

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************





List Archive - Manage Your List Settings - Unsubscribe

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com


List Archive - Manage Your List Settings - Unsubscribe

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com


To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
T.Rob
2013-10-15 03:06:13 UTC
Permalink
Hi Peter,



I've been trying for YEARS to get the Infocenter setmqaut examples all
changed to use -g instead of -p. There is only one case where the -p does
what you expect, it's Windows and even there the technique isn't at all
reliable. Here's the scoop.



When you issue setmqaut in Windows, it stores the SID that is resolved. You
give it a string and then Windows name resolution looks first at the local
box, then at all the domains. The OAM saves the string *and* the SID. Now
let's see what happens when you actually try to connect.



If you connect from a Windows device, the SID provided is that of the ID as
resolved by the WMQ client. Sometimes that ID is local, sometimes it is the
domain account. Sometimes it can actually change depending on whether you
are connected to the network *before* or *after* you log into Windows.
Depending on the AD policy you might use a cached ID or a local account.



When the Windows client connects, the QMgr gets the SID and tries to resolve
it. Whether it resolves depends on the interaction of AD policy between the
WMQ host, the laptop and the domain. In some cases a local account is
resolved when the laptop is on the VPN but not when it is connected directly
to the intranet. In some cases the laptop uses a domain account at all
times. Depends on AD policy. The ability of the QMgr to resolve that SID
may change depending on *which* SID is presented and on the connection
itself. Assuming the ID presented by the laptop is static or at least is
good, and the QMgr's host still can't resolve it, another issue is the trust
relationship between the QMgr's host and the domains it knows about. The
SID can live in only one domain and if that domain either drops out of the
search path or refuses to resolve the laptop whilst connected remotely due
to reduced trust of remote devices, again an intermittent failure.



Sometimes though the client connection itself cannot resolve the SID. This
can be because it is a domain account and the domain isn't available or that
policies alter the domain trust when the device is remote. Other times it
is because the ID presented is set through configuration to one that simply
does not exist and can't be resolved by Windows. In all these cases a
string is sent without a SID, just like with non-Windows platforms. When a
string is received by the QMgr it tries to resolve the string using the
local domain search path. First local, then the domains that it knows
about. The *first* domain to resolve the string returns a SID. If that SID
matches what the QMgr resolved the very first time, you are golden.
However, if the ID in question exists in more than one place in the search
path it can resolve to a SID that does *not* match what setmqaut stored.
Depends on the search path and that can change at run time. Again, this can
lead to intermittent failures.



I believe there's a case where the client sends a SID that doesn't match the
string. For example, your JMS app sets the ID to "mqm" but the client sends
the SID of the local user. Not sure if that's true and if so which client
versions it applies to. Also, I do not know whether the CHLAUTH rules
evaluate the SID, the string or both, when evaluating matches on Client ID.



The only way I've ever found to mitigate all of this is to use a
fully-qualified value such as ***@workstationname or ***@domain. This
must be done when issuing the setmqaut command and then subsequently for
every configuration reference to the ID such as MCAUSER or CHLAUTH. I've
stated this in all my conference sessions and tried to influence others to
do so in theirs and even had some luck in getting the Infocenter updated but
it is far from what I would consider to be well documented.



Part of the problem is that none of this is unique to WMQ. *Any* software
that tries to resolve strings to Windows accounts has all of these issues.
In fact, I believe that is part of the reason it's not well documented by
IBM - I think it's generally considered to be a Windows accounts issue and
not strictly a WMQ issue. To a deeply skilled AD person, resolving SIDs or
string values through the domain search path is well known. To WMQ admins
it is a black art. That's pretty much the case with anything adjacent to
WMQ. The mechanics of X.509 certificates, signing, the TLS protocol, etc.
are all well documented elsewhere. The Infocenter docs on these began to
improve when it became clear that WMQ customers weren't finding these
external sources and the difficulty in doing anything with TLS made it a WMQ
problem. Same thing with the WMQ administrative overlap in PowerHA, VCS,
MSCS, etc. All generally considered out of scope for the WMQ Infocenter but
would be extremely helpful for WMQ admins if more of it were there.



So, whip up a SVRCONN with no mapping and put ***@domain-or-host in the
MCAUSER and keep changing the domain-or-host part until you find one that
works. Then put that fully-qualified value in the channel mapping rule for
your target channel. If the client-facing part of the CHLAUTH (the part
that evaluates the client ID on the connection) is resolving strings, this
will work all the time. If not you'd actually have to know all the
***@host and ***@domains that could be sent in.



Filling in for Roger, we *know* that MQAUSX will resolve the string
presented by the client ID and not the SID. If you have an MCAUSER that you
know works but CHLAUTH is still intermittent, MQAUSX can resolve the string
presented and map to a known good MCAUSER (also in ***@domain format) so it
works consistently.



Happy to work with you offline on this. Turns out I have a bit of time this
week. If this doesn't fix it, call me.



-- T.Rob





From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 20:54 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



Here is the test using the IP address of the client server inside the data
center. This test case has the mapping take effect, and the runcheck shows
that. Actual IP address values changed to protect the innocent, although the
# of digits is the same as the actual IP address.



DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345')
ADDRESS('10.320.242.284')

AMQ8878: Display channel authentication record details.

CHLAUTH(PETER.TEST.1) TYPE(USERMAP)

ADDRESS( ) CLNTUSER(pp12345)

MCAUSER(abc123)







Here is the test using the IP address of my laptop coming in over VPN, as
seen from the queue manager. This test case is the one where the mapping
does NOT take effect. Actual IP address values changed to protect the
innocent, although the # of digits is the same as the actual IP address.



DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345')
ADDRESS('10.257.2.50')

AMQ8878: Display channel authentication record details.

CHLAUTH(PETER.TEST.1) TYPE(USERMAP)

ADDRESS( ) CLNTUSER(pp12345)

MCAUSER(abc123)



According to the runcheck, and common sense, this should also cause the ID
to be flipped from pp12345 to abc123, but for some crazy reason it does not
when I'm client connected to the QM over VPN.





Peter Potkay



From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 12:58 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



I did not for the MCAUSER because I only have a dummy bogus ID hard coded in
there as a blocker.



I did not for the CHLAUTH rule because none of the examples in the Info
Center mention needing to specify the domain. And when the Authority Events
were thrown the ID listed in the event message did not have a domain, so I
wanted to supply that exact ID into the CHLAUTH rule. I looked in the
CHLAUTH presentation from the 2013 MQ Tech Conference and the only time a
domain is used in the examples is once or twice on the ID to be used for the
effective MCAUSER, never for the incoming ID to be matched against.





Peter Potkay



From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
T.Rob
Sent: Monday, October 14, 2013 11:50 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



So have you tried the ***@domain format when specifying MCAUSER in the
channel or mapping rule?





From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 9:36 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



"but are the accounts on the home and office PCs local or domain accounts"

The home and office PC are one and the same, my laptop that I bring with me.



I am logged in as a domain ID on my laptop. I use that same domain ID log in
when I get onto a server with just the MQ Client to use as another test
case.



I never see the domain info when I see the ID displayed in an Authority
Event message or in the MCAUSER field of a running channel instance.





Peter Potkay



From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
Neil Casey
Sent: Monday, October 14, 2013 9:21 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



Hi,



this might not be relevant, but are the accounts on the home and office PCs
local or domain accounts, and is the server using domain accounts?



If your home PC has a local account pp12345, and the RDP machine in the
office uses a domain login (also pp12345 but of course actually a different
account) then that might account for the different behaviour.



However, the manual doesn't mention that domain or SID is checked. it just
says the client asserted userid.



Regards,





Neil Casey

mailto:Neil_Casey-8K57OPj+***@public.gmane.org mobile: +61 414 615 334














On 15/10/2013, at 12:02 AM, "Costa, D. (Damian)" <DamianC-3zJjxGF14/***@public.gmane.org>
wrote:



Hi,

Peter we're doing the same sort of stuff but on MQ V 7.1 we are also
dialling into the office network via VPN's and such but there is no
connectivity failures to MQ V7.1 qmgrs with chl auth rules enabled.



Looks to me you'll really have to look under the covers here. So no avoiding
a trace file or two I'm afraid.





From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
Potkay, Peter M (CTO Architecture + Engineering)
Sent: 14 October 2013 02:53 PM
To: <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



Interesting. I decided to play around with this some more last night. The
behavior reverted to what I had originally posted - the CHLAUTH rule to map
pp12345 to abc123 was not being invoked even though I was connecting over
the named channel and as that ID.

This morning its working again as expected.

My test cases are identical except for one thing I realized. When I'm
working from home they don't work as expected, when I'm logged in at the
office they work as expected. When I'm working from home I'm coming in over
a VPN tunnel. The MQ Client connection originates from my physical laptop
where I am logged in as pp12345, and the Queue Manager resides on a server
inside our data center.

I originally set up the CHLAUTH rule when I was working from home and never
got the expected mapping to work - my opening post. When I reported it
started working, I was in the office. Last night it stopped working, I was
at home. This morning its working again as I test from the office.

Even though there is no CHLAUTH rule based on IP address I did try the
following when I was working from home. I RDP'ed onto an unrelated server
that had MQ Client installed and repeated the same test. Even though I and
my laptop were at home coming in over the VPN, my test case was executing
directly on the server. The CHLAUTH rule worked. And I tried that same test
this morning in the office, RDP'ing to the other server. It works. So its
not IP based.

It seems the connection over VPN is doing something that causes the CHLAUTH
rule to not fire. Its not IP address related, since I proved coming from
different IPs doesn't matter, and there isn't an IP based CHLAUTH rule
anyway. I thought maybe the ID that was sent by the client was somehow
messed with over the VPN connection, but that's not it because when I tried
to connect over another client channel with a blank MCAUSER and no CHLAUTH
rule the ID shown in the running channel was pp12345. And if I tried to
access a queue I wasn't allowed to the Authority Event showed pp12345.

Very odd. Anyone have any ideas why this is behaving like this?

I'm going to try one more time tonight from home and if the pattern persists
I guess its time to run a trace on the Queue Manager for both test cases
(from the office and from home) and open a PMR.



Peter Potkay



From: MQSeries List [ <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO
Architecture + Engineering)
Sent: Friday, October 11, 2013 10:00 AM
To: <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



Damian,

I suspected that, but when I make a connection over the channel the active
channel shows the ID in use as lowercase.

When I try to access queues I don't have rights to, the Authority Events
show the ID in lowercase as well.



I think everything is using lowercase.





This morning, its working as expected. No changes were made to the channel
or the CHLAUTH rules. The same test cases used yesterday that were not
causing the mapping to kick in are working as expected today. The only thing
done was after I sent the original email I started playing with the RUNCHECK
option of the DISPLAY CHLAUTH command to see what it returned. Its as if the
RUNCHECK gave the QM a kick in the pants to start respecting this USERMAP
CHLAUTH rule. Other CHLAUTH rules (not related to mapping User IDs) were
working fine before this though. New USERMAP rules I have played with this
morning all work right away as expected.





3 : DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345')
ADDRESS('9.999.999.999')

AMQ8878: Display channel authentication record details.

CHLAUTH(PETER.TEST.1) TYPE(USERMAP)

ADDRESS( ) CLNTUSER(pp12345)

MCAUSER(abc123)





By the way, I tried this first without the quotes around the value in the
CLNTUSER field and got "ChlAuth not found". I guess this would be the MQSC
display command folding my ID from lowercase to uppercase and PP12345 not
matching pp12345, so the display command didn't get a hit in that case. But
I do believe its lowercase being used all around during execution.



I'm just puzzled why everything works normally this morning.





Neil,

I agree with you that its trivial to set any ID you want as a client. We
will be using Captialware's Security Exit to do real authentication of the
client on the other end, then using mapping rules to have the connection run
as the ID we want.



Peter Potkay



From: MQSeries List [ <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Costa, D. (Damian)
Sent: Friday, October 11, 2013 6:17 AM
To: <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



We've had issues with this before and it turns out that at the domain level
the account is identified by uppercase values instead of lower case .

What happens if you add a chl auth rule with your clntuser in upper case?



From: MQSeries List [ <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO
Architecture + Engineering)
Sent: 11 October 2013 01:48 AM
To: <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Cannot get CHLAUTH Client ID Mapping to work



My client is MQ 7.5.0.2 on a Windows 7 desktop.

The Queue Manager is MQ 7.5.0.2 on a RHEL 6.4 server.

CHLAUTH is enabled.



DISPLAY QMGR CHLAUTH CMDLEVEL

AMQ8408: Display Queue Manager details.

QMNAME(MYQM) CHLAUTH(ENABLED)

CMDLEVEL(750)





Here's the MQ Client channel I'm testing with on my Lab server.



DIS CHANNEL(PETER.TEST.1) ALL

AMQ8414: Display Channel details.

CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)

ALTDATE(2013-10-10) ALTTIME(18.51.26)

COMPHDR(NONE) COMPMSG(NONE)

DESCR( ) DISCINT(0)

HBINT(30) KAINT(AUTO)

MAXINST(999999999) MAXINSTC(999999999)

MAXMSGL(104857600) MCAUSER(BOGUS_ID_123)

MONCHL(QMGR) RCVDATA( )

RCVEXIT( ) SCYDATA( )

SCYEXIT( ) SENDDATA( )

SENDEXIT( ) SHARECNV(10)

SSLCAUTH(REQUIRED) SSLCIPH( )

SSLPEER( ) TRPTYPE(TCP)





And here is my CHLAUTH rule.



DISPLAY CHLAUTH (PETER.TEST.1) ALL

AMQ8878: Display channel authentication record details.

CHLAUTH(PETER.TEST.1) TYPE(USERMAP)

DESCR( ) CUSTOM( )

ADDRESS( ) CLNTUSER(pp12345)

MCAUSER(abc123) USERSRC(MAP)

ALTDATE(2013-10-10) ALTTIME(18.58.23)







I am logged into my PC as pp12345. And every time I connect to this queue
manager over the PETER.TEST.1 channel the ID the channel runs as is
BOGUS_ID_123. MQRC 2035. Authority Event message shows BOGUS_ID_123. Why is
the CHLAUTH rule not kicking in and changing the connection to run as
abc123?



If I blank out the MCAUSER on the channel, then I connect as pp12345. I
happen to have access to some queues on this QM as this pp12345 ID and I can
open those queues. If I do a channel status it shows me running as pp12345,
not abc123 (see below). If I try and open some other queues I don't have
access to, MQRC 2035 and the Authority Event message shows the pp12345 ID.
Again, why is the CHLAUTH rule not kicking in and changing my connection to
abc123?



Nothing in the queue manager error logs.





display chstatus(PETER.TEST.1) all

AMQ8417: Display Channel Status details.

CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)

BUFSRCVD(9) BUFSSENT(8)

BYTSRCVD(1628) BYTSSENT(1444)

CHSTADA(2013-10-10) CHSTATI(19.42.48)

COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)

COMPRATE(0,0) COMPTIME(0,0)

CONNAME(10.147.130.226) CURRENT

EXITTIME(0,0) HBINT(30)

JOBNAME(0000B7EF00000F73) LOCLADDR(::ffff:99.111.222.99(1414))

LSTMSGDA(2013-10-10) LSTMSGTI(19.42.49)

MCASTAT(RUNNING) MCAUSER(pp12345)

MONCHL(LOW) MSGS(2)

RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)

SSLCERTI( ) SSLKEYDA( )

SSLKEYTI( ) SSLPEER( )

SSLRKEYS(0) STATUS(RUNNING)

STOPREQ(NO) SUBSTATE(RECEIVE)

CURSHCNV(1) MAXSHCNV(10)

RVERSION(07050002) RPRODUCT(MQCC)





Peter Potkay







************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************



_____

<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at
<http://www.lsoft.com/resources/manuals.asp> http://www.lsoft.com


********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ <http://www.nedbank.co.za/terms/DirectorsNedbank.htm>
http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ <http://www.nedbank.co.za/terms/EmailDisclaimer.htm>
http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************



_____

<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at
<http://www.lsoft.com/resources/manuals.asp> http://www.lsoft.com

************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************



_____

<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at
<http://www.lsoft.com/resources/manuals.asp> http://www.lsoft.com

************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************



_____

<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at
<http://www.lsoft.com/resources/manuals.asp> http://www.lsoft.com


********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ <http://www.nedbank.co.za/terms/DirectorsNedbank.htm>
http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ <http://www.nedbank.co.za/terms/EmailDisclaimer.htm>
http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************



_____

<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at
<http://www.lsoft.com/resources/manuals.asp> http://www.lsoft.com





_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************



_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>



_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************



_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************



_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>


To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Potkay, Peter M (CTO Architecture + Engineering)
2013-10-15 13:23:12 UTC
Permalink
Going on the theory that the SID presented when I am logged on from home is different than the SID presented when I am logged in at work, even though I type in the same ID and password into the same physical laptop in both case, it could make sense that pp12345 is not equal to pp12345 when it comes time for the QM to do its thing with that ID. HOWEVER....


A. The Queue Manager in this scenario is running on Linux. Does that eliminate the Windows SID from the conversation?

B. When I use a second channel that has a blank MCAUSER and no CHLAUTH rule that covers that channel name, I can connect to the QM, whether its pp12345 logged on at work or pp12345 logged on at home. I can access the queues my group membership says I can, and I get the 2035s I'm supposed to when I try to access a queue I'm not supposed to. Why would CHLAUTH be sensitive to SIDs (if they are in play at all, see point A) but the setmqaut rules don't care?


When I log on at home I'm logging into my laptop before I establish the VPN, logging into the 'domain' and not the local laptop name, so cached credentials are in play. Once my VPN is established I do execute my log on script again to establish my shared drive mappings, and I assume to log into my domain again, this time for real. So I'll buy the idea that the SID being presented over the client connection is different when I'm coming in over the VPN. But why would setmqaut rules be immune to that (which have historically been very sensitive to SIDs in my experience) but the CHLAUTH rules get tripped up by it?

At least this problem is consistent. I've repeated it 3 different days/nights. Things work just fine on the intranet, but the CHLAUTH rule for User mapping fails to fire when dealing with a connection over a VPN. I'm building a new QM today on a new server and will test against it. If it works the same way against a second QM its PMR time.

"So, whip up a SVRCONN with no mapping and put ***@domain-or-host in the MCAUSER and keep changing the domain-or-host part until you find one that works. Then put that fully-qualified value in the channel mapping rule for your target channel. If the client-facing part of the CHLAUTH (the part that evaluates the client ID on the connection) is resolving strings, this will work all the time. If not you'd actually have to know all the ***@host and ***@domains that could be sent in."

I can't create a channel with ***@myhost because the MCAUSER field is restricted to 12 characters on non Windows platforms. This being a Linux queue manager I would only be able to get in the first few letters of the host name.

A channel with ***@mydomain in the MCAUSER allows me to connect and I see the channel running as ***@mydomain. Reminder: Another channel with a blank MCAUSER and no CHLAUTH rule runs as pp12345 (no domain appended), whether I connect from home or the office.

I set up a new channel with a Bogus ID in the MCAUSER.
I then set up a CHLAUTH rule looking for ***@mydomain to match against for this new channel.

DISPLAY CHLAUTH (PETER.TEST.6) ALL
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.6) TYPE(USERMAP)
DESCR( ) CUSTOM( )
ADDRESS(*) CLNTUSER(***@xxx)
MCAUSER(abc123) USERSRC(MAP)
ALTDATE(2013-10-15) ALTTIME(08.48.24)


The rule does not see the client connection as a match. I am in the office right now. The connection is rejected and the user ID in the Authority Event message is the bogus ID hard coded in the channel. Sooooooo, this says to me the CHLAUTH is behaving slightly differently than setmqaut / OAM but we (or at least I) already suspected that.

Apparently pp12345 or ***@domain are being treated the same by the OAM, but CHLAUTH is somehow seeing things differently.



Peter Potkay


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of T.Rob
Sent: Monday, October 14, 2013 11:06 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Hi Peter,

I've been trying for YEARS to get the Infocenter setmqaut examples all changed to use -g instead of -p. There is only one case where the -p does what you expect, it's Windows and even there the technique isn't at all reliable. Here's the scoop.

When you issue setmqaut in Windows, it stores the SID that is resolved. You give it a string and then Windows name resolution looks first at the local box, then at all the domains. The OAM saves the string *and* the SID. Now let's see what happens when you actually try to connect.

If you connect from a Windows device, the SID provided is that of the ID as resolved by the WMQ client. Sometimes that ID is local, sometimes it is the domain account. Sometimes it can actually change depending on whether you are connected to the network *before* or *after* you log into Windows. Depending on the AD policy you might use a cached ID or a local account.

When the Windows client connects, the QMgr gets the SID and tries to resolve it. Whether it resolves depends on the interaction of AD policy between the WMQ host, the laptop and the domain. In some cases a local account is resolved when the laptop is on the VPN but not when it is connected directly to the intranet. In some cases the laptop uses a domain account at all times. Depends on AD policy. The ability of the QMgr to resolve that SID may change depending on *which* SID is presented and on the connection itself. Assuming the ID presented by the laptop is static or at least is good, and the QMgr's host still can't resolve it, another issue is the trust relationship between the QMgr's host and the domains it knows about. The SID can live in only one domain and if that domain either drops out of the search path or refuses to resolve the laptop whilst connected remotely due to reduced trust of remote devices, again an intermittent failure.

Sometimes though the client connection itself cannot resolve the SID. This can be because it is a domain account and the domain isn't available or that policies alter the domain trust when the device is remote. Other times it is because the ID presented is set through configuration to one that simply does not exist and can't be resolved by Windows. In all these cases a string is sent without a SID, just like with non-Windows platforms. When a string is received by the QMgr it tries to resolve the string using the local domain search path. First local, then the domains that it knows about. The *first* domain to resolve the string returns a SID. If that SID matches what the QMgr resolved the very first time, you are golden. However, if the ID in question exists in more than one place in the search path it can resolve to a SID that does *not* match what setmqaut stored. Depends on the search path and that can change at run time. Again, this can lead to intermittent failures.

I believe there's a case where the client sends a SID that doesn't match the string. For example, your JMS app sets the ID to "mqm" but the client sends the SID of the local user. Not sure if that's true and if so which client versions it applies to. Also, I do not know whether the CHLAUTH rules evaluate the SID, the string or both, when evaluating matches on Client ID.

The only way I've ever found to mitigate all of this is to use a fully-qualified value such as ***@workstationname or ***@domain. This must be done when issuing the setmqaut command and then subsequently for every configuration reference to the ID such as MCAUSER or CHLAUTH. I've stated this in all my conference sessions and tried to influence others to do so in theirs and even had some luck in getting the Infocenter updated but it is far from what I would consider to be well documented.

Part of the problem is that none of this is unique to WMQ. *Any* software that tries to resolve strings to Windows accounts has all of these issues. In fact, I believe that is part of the reason it's not well documented by IBM - I think it's generally considered to be a Windows accounts issue and not strictly a WMQ issue. To a deeply skilled AD person, resolving SIDs or string values through the domain search path is well known. To WMQ admins it is a black art. That's pretty much the case with anything adjacent to WMQ. The mechanics of X.509 certificates, signing, the TLS protocol, etc. are all well documented elsewhere. The Infocenter docs on these began to improve when it became clear that WMQ customers weren't finding these external sources and the difficulty in doing anything with TLS made it a WMQ problem. Same thing with the WMQ administrative overlap in PowerHA, VCS, MSCS, etc. All generally considered out of scope for the WMQ Infocenter but would be extremely helpful for WMQ admins if more of it were there.

So, whip up a SVRCONN with no mapping and put ***@domain-or-host in the MCAUSER and keep changing the domain-or-host part until you find one that works. Then put that fully-qualified value in the channel mapping rule for your target channel. If the client-facing part of the CHLAUTH (the part that evaluates the client ID on the connection) is resolving strings, this will work all the time. If not you'd actually have to know all the ***@host and ***@domains that could be sent in.

Filling in for Roger, we *know* that MQAUSX will resolve the string presented by the client ID and not the SID. If you have an MCAUSER that you know works but CHLAUTH is still intermittent, MQAUSX can resolve the string presented and map to a known good MCAUSER (also in ***@domain format) so it works consistently.

Happy to work with you offline on this. Turns out I have a bit of time this week. If this doesn't fix it, call me.

-- T.Rob


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 20:54 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Here is the test using the IP address of the client server inside the data center. This test case has the mapping take effect, and the runcheck shows that. Actual IP address values changed to protect the innocent, although the # of digits is the same as the actual IP address.

DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('10.320.242.284')
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123)



Here is the test using the IP address of my laptop coming in over VPN, as seen from the queue manager. This test case is the one where the mapping does NOT take effect. Actual IP address values changed to protect the innocent, although the # of digits is the same as the actual IP address.

DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('10.257.2.50')
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123)

According to the runcheck, and common sense, this should also cause the ID to be flipped from pp12345 to abc123, but for some crazy reason it does not when I'm client connected to the QM over VPN.


Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 12:58 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

I did not for the MCAUSER because I only have a dummy bogus ID hard coded in there as a blocker.

I did not for the CHLAUTH rule because none of the examples in the Info Center mention needing to specify the domain. And when the Authority Events were thrown the ID listed in the event message did not have a domain, so I wanted to supply that exact ID into the CHLAUTH rule. I looked in the CHLAUTH presentation from the 2013 MQ Tech Conference and the only time a domain is used in the examples is once or twice on the ID to be used for the effective MCAUSER, never for the incoming ID to be matched against.


Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of T.Rob
Sent: Monday, October 14, 2013 11:50 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

So have you tried the ***@domain format when specifying MCAUSER in the channel or mapping rule?


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 9:36 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

"but are the accounts on the home and office PCs local or domain accounts"
The home and office PC are one and the same, my laptop that I bring with me.

I am logged in as a domain ID on my laptop. I use that same domain ID log in when I get onto a server with just the MQ Client to use as another test case.

I never see the domain info when I see the ID displayed in an Authority Event message or in the MCAUSER field of a running channel instance.


Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Neil Casey
Sent: Monday, October 14, 2013 9:21 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Hi,

this might not be relevant, but are the accounts on the home and office PCs local or domain accounts, and is the server using domain accounts?

If your home PC has a local account pp12345, and the RDP machine in the office uses a domain login (also pp12345 but of course actually a different account) then that might account for the different behaviour.

However, the manual doesn't mention that domain or SID is checked... it just says the client asserted userid.

Regards,


Neil Casey
mailto:Neil_Casey-8K57OPj+***@public.gmane.org mobile: +61 414 615 334

[cid:image001.png-***@public.gmane.org]




On 15/10/2013, at 12:02 AM, "Costa, D. (Damian)" <DamianC-3zJjxGF14/***@public.gmane.org<mailto:DamianC-3zJjxGF14/***@public.gmane.org>> wrote:

Hi,
Peter we're doing the same sort of stuff but on MQ V 7.1 we are also dialling into the office network via VPN's and such but there is no connectivity failures to MQ V7.1 qmgrs with chl auth rules enabled.

Looks to me you'll really have to look under the covers here. So no avoiding a trace file or two I'm afraid.


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 14 October 2013 02:53 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Interesting. I decided to play around with this some more last night. The behavior reverted to what I had originally posted - the CHLAUTH rule to map pp12345 to abc123 was not being invoked even though I was connecting over the named channel and as that ID.

This morning its working again as expected.

My test cases are identical except for one thing I realized. When I'm working from home they don't work as expected, when I'm logged in at the office they work as expected. When I'm working from home I'm coming in over a VPN tunnel. The MQ Client connection originates from my physical laptop where I am logged in as pp12345, and the Queue Manager resides on a server inside our data center.

I originally set up the CHLAUTH rule when I was working from home and never got the expected mapping to work - my opening post. When I reported it started working, I was in the office. Last night it stopped working, I was at home. This morning its working again as I test from the office.

Even though there is no CHLAUTH rule based on IP address I did try the following when I was working from home. I RDP'ed onto an unrelated server that had MQ Client installed and repeated the same test. Even though I and my laptop were at home coming in over the VPN, my test case was executing directly on the server. The CHLAUTH rule worked. And I tried that same test this morning in the office, RDP'ing to the other server. It works. So its not IP based.

It seems the connection over VPN is doing something that causes the CHLAUTH rule to not fire. Its not IP address related, since I proved coming from different IPs doesn't matter, and there isn't an IP based CHLAUTH rule anyway. I thought maybe the ID that was sent by the client was somehow messed with over the VPN connection, but that's not it because when I tried to connect over another client channel with a blank MCAUSER and no CHLAUTH rule the ID shown in the running channel was pp12345. And if I tried to access a queue I wasn't allowed to the Authority Event showed pp12345.

Very odd. Anyone have any ideas why this is behaving like this?

I'm going to try one more time tonight from home and if the pattern persists I guess its time to run a trace on the Queue Manager for both test cases (from the office and from home) and open a PMR.

Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Friday, October 11, 2013 10:00 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Damian,
I suspected that, but when I make a connection over the channel the active channel shows the ID in use as lowercase.
When I try to access queues I don't have rights to, the Authority Events show the ID in lowercase as well.

I think everything is using lowercase.


This morning, its working as expected. No changes were made to the channel or the CHLAUTH rules. The same test cases used yesterday that were not causing the mapping to kick in are working as expected today. The only thing done was after I sent the original email I started playing with the RUNCHECK option of the DISPLAY CHLAUTH command to see what it returned. Its as if the RUNCHECK gave the QM a kick in the pants to start respecting this USERMAP CHLAUTH rule. Other CHLAUTH rules (not related to mapping User IDs) were working fine before this though. New USERMAP rules I have played with this morning all work right away as expected.


3 : DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('9.999.999.999')
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123)


By the way, I tried this first without the quotes around the value in the CLNTUSER field and got "ChlAuth not found". I guess this would be the MQSC display command folding my ID from lowercase to uppercase and PP12345 not matching pp12345, so the display command didn't get a hit in that case. But I do believe its lowercase being used all around during execution.

I'm just puzzled why everything works normally this morning.


Neil,
I agree with you that its trivial to set any ID you want as a client. We will be using Captialware's Security Exit to do real authentication of the client on the other end, then using mapping rules to have the connection run as the ID we want.

Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Costa, D. (Damian)
Sent: Friday, October 11, 2013 6:17 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

We've had issues with this before and it turns out that at the domain level the account is identified by uppercase values instead of lower case .
What happens if you add a chl auth rule with your clntuser in upper case?

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 11 October 2013 01:48 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Cannot get CHLAUTH Client ID Mapping to work

My client is MQ 7.5.0.2 on a Windows 7 desktop.
The Queue Manager is MQ 7.5.0.2 on a RHEL 6.4 server.
CHLAUTH is enabled.

DISPLAY QMGR CHLAUTH CMDLEVEL
AMQ8408: Display Queue Manager details.
QMNAME(MYQM) CHLAUTH(ENABLED)
CMDLEVEL(750)


Here's the MQ Client channel I'm testing with on my Lab server.

DIS CHANNEL(PETER.TEST.1) ALL
AMQ8414: Display Channel details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
ALTDATE(2013-10-10) ALTTIME(18.51.26)
COMPHDR(NONE) COMPMSG(NONE)
DESCR( ) DISCINT(0)
HBINT(30) KAINT(AUTO)
MAXINST(999999999) MAXINSTC(999999999)
MAXMSGL(104857600) MCAUSER(BOGUS_ID_123)
MONCHL(QMGR) RCVDATA( )
RCVEXIT( ) SCYDATA( )
SCYEXIT( ) SENDDATA( )
SENDEXIT( ) SHARECNV(10)
SSLCAUTH(REQUIRED) SSLCIPH( )
SSLPEER( ) TRPTYPE(TCP)


And here is my CHLAUTH rule.

DISPLAY CHLAUTH (PETER.TEST.1) ALL
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
DESCR( ) CUSTOM( )
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123) USERSRC(MAP)
ALTDATE(2013-10-10) ALTTIME(18.58.23)



I am logged into my PC as pp12345. And every time I connect to this queue manager over the PETER.TEST.1 channel the ID the channel runs as is BOGUS_ID_123. MQRC 2035. Authority Event message shows BOGUS_ID_123. Why is the CHLAUTH rule not kicking in and changing the connection to run as abc123?

If I blank out the MCAUSER on the channel, then I connect as pp12345. I happen to have access to some queues on this QM as this pp12345 ID and I can open those queues. If I do a channel status it shows me running as pp12345, not abc123 (see below). If I try and open some other queues I don't have access to, MQRC 2035 and the Authority Event message shows the pp12345 ID. Again, why is the CHLAUTH rule not kicking in and changing my connection to abc123?

Nothing in the queue manager error logs.


display chstatus(PETER.TEST.1) all
AMQ8417: Display Channel Status details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
BUFSRCVD(9) BUFSSENT(8)
BYTSRCVD(1628) BYTSSENT(1444)
CHSTADA(2013-10-10) CHSTATI(19.42.48)
COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)
COMPRATE(0,0) COMPTIME(0,0)
CONNAME(10.147.130.226) CURRENT
EXITTIME(0,0) HBINT(30)
JOBNAME(0000B7EF00000F73) LOCLADDR(::ffff:99.111.222.99(1414))
LSTMSGDA(2013-10-10) LSTMSGTI(19.42.49)
MCASTAT(RUNNING) MCAUSER(pp12345)
MONCHL(LOW) MSGS(2)
RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)
SSLCERTI( ) SSLKEYDA( )
SSLKEYTI( ) SSLPEER( )
SSLRKEYS(0) STATUS(RUNNING)
STOPREQ(NO) SUBSTATE(RECEIVE)
CURSHCNV(1) MAXSHCNV(10)
RVERSION(07050002) RPRODUCT(MQCC)


Peter Potkay




************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>


________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>
************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
T.Rob
2013-10-15 14:19:57 UTC
Permalink
Never mind then. I thought I read that the systems involved were Windows.
Systems other than Windows will only evaluate strings for IDs. In that case
pp1234 really *is* pp1234 as far as the QMgr is concerned.





From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
Potkay, Peter M (CTO Architecture + Engineering)
Sent: Tuesday, October 15, 2013 9:23 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



Going on the theory that the SID presented when I am logged on from home is
different than the SID presented when I am logged in at work, even though I
type in the same ID and password into the same physical laptop in both case,
it could make sense that pp12345 is not equal to pp12345 when it comes time
for the QM to do its thing with that ID. HOWEVER..



A. The Queue Manager in this scenario is running on Linux. Does that
eliminate the Windows SID from the conversation?

B. When I use a second channel that has a blank MCAUSER and no CHLAUTH
rule that covers that channel name, I can connect to the QM, whether its
pp12345 logged on at work or pp12345 logged on at home. I can access the
queues my group membership says I can, and I get the 2035s I'm supposed to
when I try to access a queue I'm not supposed to. Why would CHLAUTH be
sensitive to SIDs (if they are in play at all, see point A) but the setmqaut
rules don't care?





When I log on at home I'm logging into my laptop before I establish the VPN,
logging into the 'domain' and not the local laptop name, so cached
credentials are in play. Once my VPN is established I do execute my log on
script again to establish my shared drive mappings, and I assume to log into
my domain again, this time for real. So I'll buy the idea that the SID being
presented over the client connection is different when I'm coming in over
the VPN. But why would setmqaut rules be immune to that (which have
historically been very sensitive to SIDs in my experience) but the CHLAUTH
rules get tripped up by it?



At least this problem is consistent. I've repeated it 3 different
days/nights. Things work just fine on the intranet, but the CHLAUTH rule for
User mapping fails to fire when dealing with a connection over a VPN. I'm
building a new QM today on a new server and will test against it. If it
works the same way against a second QM its PMR time.



"So, whip up a SVRCONN with no mapping and put ***@domain-or-host in the
MCAUSER and keep changing the domain-or-host part until you find one that
works. Then put that fully-qualified value in the channel mapping rule for
your target channel. If the client-facing part of the CHLAUTH (the part
that evaluates the client ID on the connection) is resolving strings, this
will work all the time. If not you'd actually have to know all the
***@host and ***@domains that could be sent in."



I can't create a channel with ***@myhost because the MCAUSER field is
restricted to 12 characters on non Windows platforms. This being a Linux
queue manager I would only be able to get in the first few letters of the
host name.



A channel with ***@mydomain in the MCAUSER allows me to connect and I
see the channel running as ***@mydomain. Reminder: Another channel with
a blank MCAUSER and no CHLAUTH rule runs as pp12345 (no domain appended),
whether I connect from home or the office.



I set up a new channel with a Bogus ID in the MCAUSER.

I then set up a CHLAUTH rule looking for ***@mydomain to match against
for this new channel.



DISPLAY CHLAUTH (PETER.TEST.6) ALL

AMQ8878: Display channel authentication record details.

CHLAUTH(PETER.TEST.6) TYPE(USERMAP)

DESCR( ) CUSTOM( )

ADDRESS(*) CLNTUSER(***@xxx)

MCAUSER(abc123) USERSRC(MAP)

ALTDATE(2013-10-15) ALTTIME(08.48.24)





The rule does not see the client connection as a match. I am in the office
right now. The connection is rejected and the user ID in the Authority Event
message is the bogus ID hard coded in the channel. Sooooooo, this says to
me the CHLAUTH is behaving slightly differently than setmqaut / OAM but we
(or at least I) already suspected that.



Apparently pp12345 or ***@domain are being treated the same by the OAM,
but CHLAUTH is somehow seeing things differently.







Peter Potkay



From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
T.Rob
Sent: Monday, October 14, 2013 11:06 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



Hi Peter,



I've been trying for YEARS to get the Infocenter setmqaut examples all
changed to use -g instead of -p. There is only one case where the -p does
what you expect, it's Windows and even there the technique isn't at all
reliable. Here's the scoop.



When you issue setmqaut in Windows, it stores the SID that is resolved. You
give it a string and then Windows name resolution looks first at the local
box, then at all the domains. The OAM saves the string *and* the SID. Now
let's see what happens when you actually try to connect.



If you connect from a Windows device, the SID provided is that of the ID as
resolved by the WMQ client. Sometimes that ID is local, sometimes it is the
domain account. Sometimes it can actually change depending on whether you
are connected to the network *before* or *after* you log into Windows.
Depending on the AD policy you might use a cached ID or a local account.



When the Windows client connects, the QMgr gets the SID and tries to resolve
it. Whether it resolves depends on the interaction of AD policy between the
WMQ host, the laptop and the domain. In some cases a local account is
resolved when the laptop is on the VPN but not when it is connected directly
to the intranet. In some cases the laptop uses a domain account at all
times. Depends on AD policy. The ability of the QMgr to resolve that SID
may change depending on *which* SID is presented and on the connection
itself. Assuming the ID presented by the laptop is static or at least is
good, and the QMgr's host still can't resolve it, another issue is the trust
relationship between the QMgr's host and the domains it knows about. The
SID can live in only one domain and if that domain either drops out of the
search path or refuses to resolve the laptop whilst connected remotely due
to reduced trust of remote devices, again an intermittent failure.



Sometimes though the client connection itself cannot resolve the SID. This
can be because it is a domain account and the domain isn't available or that
policies alter the domain trust when the device is remote. Other times it
is because the ID presented is set through configuration to one that simply
does not exist and can't be resolved by Windows. In all these cases a
string is sent without a SID, just like with non-Windows platforms. When a
string is received by the QMgr it tries to resolve the string using the
local domain search path. First local, then the domains that it knows
about. The *first* domain to resolve the string returns a SID. If that SID
matches what the QMgr resolved the very first time, you are golden.
However, if the ID in question exists in more than one place in the search
path it can resolve to a SID that does *not* match what setmqaut stored.
Depends on the search path and that can change at run time. Again, this can
lead to intermittent failures.



I believe there's a case where the client sends a SID that doesn't match the
string. For example, your JMS app sets the ID to "mqm" but the client sends
the SID of the local user. Not sure if that's true and if so which client
versions it applies to. Also, I do not know whether the CHLAUTH rules
evaluate the SID, the string or both, when evaluating matches on Client ID.



The only way I've ever found to mitigate all of this is to use a
fully-qualified value such as ***@workstationname or ***@domain. This
must be done when issuing the setmqaut command and then subsequently for
every configuration reference to the ID such as MCAUSER or CHLAUTH. I've
stated this in all my conference sessions and tried to influence others to
do so in theirs and even had some luck in getting the Infocenter updated but
it is far from what I would consider to be well documented.



Part of the problem is that none of this is unique to WMQ. *Any* software
that tries to resolve strings to Windows accounts has all of these issues.
In fact, I believe that is part of the reason it's not well documented by
IBM - I think it's generally considered to be a Windows accounts issue and
not strictly a WMQ issue. To a deeply skilled AD person, resolving SIDs or
string values through the domain search path is well known. To WMQ admins
it is a black art. That's pretty much the case with anything adjacent to
WMQ. The mechanics of X.509 certificates, signing, the TLS protocol, etc.
are all well documented elsewhere. The Infocenter docs on these began to
improve when it became clear that WMQ customers weren't finding these
external sources and the difficulty in doing anything with TLS made it a WMQ
problem. Same thing with the WMQ administrative overlap in PowerHA, VCS,
MSCS, etc. All generally considered out of scope for the WMQ Infocenter but
would be extremely helpful for WMQ admins if more of it were there.



So, whip up a SVRCONN with no mapping and put ***@domain-or-host in the
MCAUSER and keep changing the domain-or-host part until you find one that
works. Then put that fully-qualified value in the channel mapping rule for
your target channel. If the client-facing part of the CHLAUTH (the part
that evaluates the client ID on the connection) is resolving strings, this
will work all the time. If not you'd actually have to know all the
***@host and ***@domains that could be sent in.



Filling in for Roger, we *know* that MQAUSX will resolve the string
presented by the client ID and not the SID. If you have an MCAUSER that you
know works but CHLAUTH is still intermittent, MQAUSX can resolve the string
presented and map to a known good MCAUSER (also in ***@domain format) so it
works consistently.



Happy to work with you offline on this. Turns out I have a bit of time this
week. If this doesn't fix it, call me.



-- T.Rob





From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 20:54 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



Here is the test using the IP address of the client server inside the data
center. This test case has the mapping take effect, and the runcheck shows
that. Actual IP address values changed to protect the innocent, although the
# of digits is the same as the actual IP address.



DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345')
ADDRESS('10.320.242.284')

AMQ8878: Display channel authentication record details.

CHLAUTH(PETER.TEST.1) TYPE(USERMAP)

ADDRESS( ) CLNTUSER(pp12345)

MCAUSER(abc123)







Here is the test using the IP address of my laptop coming in over VPN, as
seen from the queue manager. This test case is the one where the mapping
does NOT take effect. Actual IP address values changed to protect the
innocent, although the # of digits is the same as the actual IP address.



DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345')
ADDRESS('10.257.2.50')

AMQ8878: Display channel authentication record details.

CHLAUTH(PETER.TEST.1) TYPE(USERMAP)

ADDRESS( ) CLNTUSER(pp12345)

MCAUSER(abc123)



According to the runcheck, and common sense, this should also cause the ID
to be flipped from pp12345 to abc123, but for some crazy reason it does not
when I'm client connected to the QM over VPN.





Peter Potkay



From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 12:58 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



I did not for the MCAUSER because I only have a dummy bogus ID hard coded in
there as a blocker.



I did not for the CHLAUTH rule because none of the examples in the Info
Center mention needing to specify the domain. And when the Authority Events
were thrown the ID listed in the event message did not have a domain, so I
wanted to supply that exact ID into the CHLAUTH rule. I looked in the
CHLAUTH presentation from the 2013 MQ Tech Conference and the only time a
domain is used in the examples is once or twice on the ID to be used for the
effective MCAUSER, never for the incoming ID to be matched against.





Peter Potkay



From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
T.Rob
Sent: Monday, October 14, 2013 11:50 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



So have you tried the ***@domain format when specifying MCAUSER in the
channel or mapping rule?





From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 9:36 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



"but are the accounts on the home and office PCs local or domain accounts"

The home and office PC are one and the same, my laptop that I bring with me.



I am logged in as a domain ID on my laptop. I use that same domain ID log in
when I get onto a server with just the MQ Client to use as another test
case.



I never see the domain info when I see the ID displayed in an Authority
Event message or in the MCAUSER field of a running channel instance.





Peter Potkay



From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
Neil Casey
Sent: Monday, October 14, 2013 9:21 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



Hi,



this might not be relevant, but are the accounts on the home and office PCs
local or domain accounts, and is the server using domain accounts?



If your home PC has a local account pp12345, and the RDP machine in the
office uses a domain login (also pp12345 but of course actually a different
account) then that might account for the different behaviour.



However, the manual doesn't mention that domain or SID is checked. it just
says the client asserted userid.



Regards,





Neil Casey

mailto:Neil_Casey-8K57OPj+***@public.gmane.org mobile: +61 414 615 334














On 15/10/2013, at 12:02 AM, "Costa, D. (Damian)" <DamianC-3zJjxGF14/***@public.gmane.org>
wrote:



Hi,

Peter we're doing the same sort of stuff but on MQ V 7.1 we are also
dialling into the office network via VPN's and such but there is no
connectivity failures to MQ V7.1 qmgrs with chl auth rules enabled.



Looks to me you'll really have to look under the covers here. So no avoiding
a trace file or two I'm afraid.





From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
Potkay, Peter M (CTO Architecture + Engineering)
Sent: 14 October 2013 02:53 PM
To: <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



Interesting. I decided to play around with this some more last night. The
behavior reverted to what I had originally posted - the CHLAUTH rule to map
pp12345 to abc123 was not being invoked even though I was connecting over
the named channel and as that ID.

This morning its working again as expected.

My test cases are identical except for one thing I realized. When I'm
working from home they don't work as expected, when I'm logged in at the
office they work as expected. When I'm working from home I'm coming in over
a VPN tunnel. The MQ Client connection originates from my physical laptop
where I am logged in as pp12345, and the Queue Manager resides on a server
inside our data center.

I originally set up the CHLAUTH rule when I was working from home and never
got the expected mapping to work - my opening post. When I reported it
started working, I was in the office. Last night it stopped working, I was
at home. This morning its working again as I test from the office.

Even though there is no CHLAUTH rule based on IP address I did try the
following when I was working from home. I RDP'ed onto an unrelated server
that had MQ Client installed and repeated the same test. Even though I and
my laptop were at home coming in over the VPN, my test case was executing
directly on the server. The CHLAUTH rule worked. And I tried that same test
this morning in the office, RDP'ing to the other server. It works. So its
not IP based.

It seems the connection over VPN is doing something that causes the CHLAUTH
rule to not fire. Its not IP address related, since I proved coming from
different IPs doesn't matter, and there isn't an IP based CHLAUTH rule
anyway. I thought maybe the ID that was sent by the client was somehow
messed with over the VPN connection, but that's not it because when I tried
to connect over another client channel with a blank MCAUSER and no CHLAUTH
rule the ID shown in the running channel was pp12345. And if I tried to
access a queue I wasn't allowed to the Authority Event showed pp12345.

Very odd. Anyone have any ideas why this is behaving like this?

I'm going to try one more time tonight from home and if the pattern persists
I guess its time to run a trace on the Queue Manager for both test cases
(from the office and from home) and open a PMR.



Peter Potkay



From: MQSeries List [ <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO
Architecture + Engineering)
Sent: Friday, October 11, 2013 10:00 AM
To: <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



Damian,

I suspected that, but when I make a connection over the channel the active
channel shows the ID in use as lowercase.

When I try to access queues I don't have rights to, the Authority Events
show the ID in lowercase as well.



I think everything is using lowercase.





This morning, its working as expected. No changes were made to the channel
or the CHLAUTH rules. The same test cases used yesterday that were not
causing the mapping to kick in are working as expected today. The only thing
done was after I sent the original email I started playing with the RUNCHECK
option of the DISPLAY CHLAUTH command to see what it returned. Its as if the
RUNCHECK gave the QM a kick in the pants to start respecting this USERMAP
CHLAUTH rule. Other CHLAUTH rules (not related to mapping User IDs) were
working fine before this though. New USERMAP rules I have played with this
morning all work right away as expected.





3 : DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345')
ADDRESS('9.999.999.999')

AMQ8878: Display channel authentication record details.

CHLAUTH(PETER.TEST.1) TYPE(USERMAP)

ADDRESS( ) CLNTUSER(pp12345)

MCAUSER(abc123)





By the way, I tried this first without the quotes around the value in the
CLNTUSER field and got "ChlAuth not found". I guess this would be the MQSC
display command folding my ID from lowercase to uppercase and PP12345 not
matching pp12345, so the display command didn't get a hit in that case. But
I do believe its lowercase being used all around during execution.



I'm just puzzled why everything works normally this morning.





Neil,

I agree with you that its trivial to set any ID you want as a client. We
will be using Captialware's Security Exit to do real authentication of the
client on the other end, then using mapping rules to have the connection run
as the ID we want.



Peter Potkay



From: MQSeries List [ <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Costa, D. (Damian)
Sent: Friday, October 11, 2013 6:17 AM
To: <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work



We've had issues with this before and it turns out that at the domain level
the account is identified by uppercase values instead of lower case .

What happens if you add a chl auth rule with your clntuser in upper case?



From: MQSeries List [ <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO
Architecture + Engineering)
Sent: 11 October 2013 01:48 AM
To: <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Cannot get CHLAUTH Client ID Mapping to work



My client is MQ 7.5.0.2 on a Windows 7 desktop.

The Queue Manager is MQ 7.5.0.2 on a RHEL 6.4 server.

CHLAUTH is enabled.



DISPLAY QMGR CHLAUTH CMDLEVEL

AMQ8408: Display Queue Manager details.

QMNAME(MYQM) CHLAUTH(ENABLED)

CMDLEVEL(750)





Here's the MQ Client channel I'm testing with on my Lab server.



DIS CHANNEL(PETER.TEST.1) ALL

AMQ8414: Display Channel details.

CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)

ALTDATE(2013-10-10) ALTTIME(18.51.26)

COMPHDR(NONE) COMPMSG(NONE)

DESCR( ) DISCINT(0)

HBINT(30) KAINT(AUTO)

MAXINST(999999999) MAXINSTC(999999999)

MAXMSGL(104857600) MCAUSER(BOGUS_ID_123)

MONCHL(QMGR) RCVDATA( )

RCVEXIT( ) SCYDATA( )

SCYEXIT( ) SENDDATA( )

SENDEXIT( ) SHARECNV(10)

SSLCAUTH(REQUIRED) SSLCIPH( )

SSLPEER( ) TRPTYPE(TCP)





And here is my CHLAUTH rule.



DISPLAY CHLAUTH (PETER.TEST.1) ALL

AMQ8878: Display channel authentication record details.

CHLAUTH(PETER.TEST.1) TYPE(USERMAP)

DESCR( ) CUSTOM( )

ADDRESS( ) CLNTUSER(pp12345)

MCAUSER(abc123) USERSRC(MAP)

ALTDATE(2013-10-10) ALTTIME(18.58.23)







I am logged into my PC as pp12345. And every time I connect to this queue
manager over the PETER.TEST.1 channel the ID the channel runs as is
BOGUS_ID_123. MQRC 2035. Authority Event message shows BOGUS_ID_123. Why is
the CHLAUTH rule not kicking in and changing the connection to run as
abc123?



If I blank out the MCAUSER on the channel, then I connect as pp12345. I
happen to have access to some queues on this QM as this pp12345 ID and I can
open those queues. If I do a channel status it shows me running as pp12345,
not abc123 (see below). If I try and open some other queues I don't have
access to, MQRC 2035 and the Authority Event message shows the pp12345 ID.
Again, why is the CHLAUTH rule not kicking in and changing my connection to
abc123?



Nothing in the queue manager error logs.





display chstatus(PETER.TEST.1) all

AMQ8417: Display Channel Status details.

CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)

BUFSRCVD(9) BUFSSENT(8)

BYTSRCVD(1628) BYTSSENT(1444)

CHSTADA(2013-10-10) CHSTATI(19.42.48)

COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)

COMPRATE(0,0) COMPTIME(0,0)

CONNAME(10.147.130.226) CURRENT

EXITTIME(0,0) HBINT(30)

JOBNAME(0000B7EF00000F73) LOCLADDR(::ffff:99.111.222.99(1414))

LSTMSGDA(2013-10-10) LSTMSGTI(19.42.49)

MCASTAT(RUNNING) MCAUSER(pp12345)

MONCHL(LOW) MSGS(2)

RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)

SSLCERTI( ) SSLKEYDA( )

SSLKEYTI( ) SSLPEER( )

SSLRKEYS(0) STATUS(RUNNING)

STOPREQ(NO) SUBSTATE(RECEIVE)

CURSHCNV(1) MAXSHCNV(10)

RVERSION(07050002) RPRODUCT(MQCC)





Peter Potkay







************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************



_____

<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at
<http://www.lsoft.com/resources/manuals.asp> http://www.lsoft.com


********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ <http://www.nedbank.co.za/terms/DirectorsNedbank.htm>
http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ <http://www.nedbank.co.za/terms/EmailDisclaimer.htm>
http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************



_____

<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at
<http://www.lsoft.com/resources/manuals.asp> http://www.lsoft.com

************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************



_____

<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at
<http://www.lsoft.com/resources/manuals.asp> http://www.lsoft.com

************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************



_____

<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at
<http://www.lsoft.com/resources/manuals.asp> http://www.lsoft.com


********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ <http://www.nedbank.co.za/terms/DirectorsNedbank.htm>
http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ <http://www.nedbank.co.za/terms/EmailDisclaimer.htm>
http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************



_____

<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at
<http://www.lsoft.com/resources/manuals.asp> http://www.lsoft.com





_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************



_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>



_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************



_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************



_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>



_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************



_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>


To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Potkay, Peter M (CTO Architecture + Engineering)
2013-10-17 00:32:36 UTC
Permalink
Success!!!

When I got home I tried to connect over the channel that had this CHLAUTH rule block all connections on it.

DISPLAY CHLAUTH (PETER.TEST.3) ALL
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.3) TYPE(ADDRESSMAP)
DESCR( ) CUSTOM( )
ADDRESS(*) USERSRC(NOACCESS)
WARN(NO) ALTDATE(2013-10-16)
ALTTIME(12.48.04)

The above rule was suggested by Morag as sort of a diagnostic rule that was expected to fail, but in the process would record the incoming ID. Apparently the only way to get this info short of a running a trace.

The connection attempt from home over VPN failed as expected with a 2035, and the QM error log recorded this:

AMQ9777: Channel was blocked
EXPLANATION:
The inbound channel 'PETER.TEST.3' was blocked from address '11.222.333.444'
because the active values of the channel matched a record configured with
USERSRC(NOACCESS). The active values of the channel were 'CLNTUSER(PP12345)'.


The connection attempt from the office (no VPN involved) failed as expected with a 2035, and the QM error log recorded this:

AMQ9777: Channel was blocked

EXPLANATION:
The inbound channel 'PETER.TEST.3' was blocked from address '11.111.77.444'
because the active values of the channel matched a record configured with
USERSRC(NOACCESS). The active values of the channel were 'CLNTUSER(pp12345)'.



Over the Intranet the ID is presented as lowercase pp12345, and over VPN as uppercase PP12345. Why the difference?!
MQ Client is MQ 7.5.0.2 on Windows 7 Laptop
MQ Server is MQ 7.5.0.2 on Red Hat Linux server.


At this point its obvious I needed a rule to cover both IDs, upper and lower case.

So back to the original channel PETER.TEST.1 and its CHLAUTH rule, er, rules we go.

DISPLAY CHLAUTH (PETER.TEST.1) ALL
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
DESCR( ) CUSTOM( )
ADDRESS( ) CLNTUSER(PP12345)
MCAUSER(abc123) USERSRC(MAP)
ALTDATE(2013-10-16) ALTTIME(20.06.46)
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
DESCR( ) CUSTOM( )
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123) USERSRC(MAP)
ALTDATE(2013-10-10) ALTTIME(18.58.23)


And the connection from home over the VPN finally gets mapped by the new rule that looks for upper case PP12345. Just need to verify that the other rule for the lowercase pp12345 will still work for when I'm in the office and not using VPN.

So I learned a good diagnostic trick (thanks Morag!), and we apparently got a pair of rules in place that cover both scenarios now. The big question is: Why is the ID's case changing simply by using VPN or not? And is this only specific to CHLAUTH? Because the OAM never got tripped up by this - it would allow or reject my access to queues as expected regardless of from where I was connected if I was using a channel not dealing with the CHLAUTH rule.

And Morag, in your upcoming blog on how to maintain existing CHLAUTH rules, could you also include the use case where we have 2 rules with the same exact name like above? How would I specify which one I wanted to edit or delete if they both have the same name and are of the same type?

Peter Potkay


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of T.Rob
Sent: Tuesday, October 15, 2013 10:20 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Never mind then. I thought I read that the systems involved were Windows. Systems other than Windows will only evaluate strings for IDs. In that case pp1234 really *is* pp1234 as far as the QMgr is concerned.


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Tuesday, October 15, 2013 9:23 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Going on the theory that the SID presented when I am logged on from home is different than the SID presented when I am logged in at work, even though I type in the same ID and password into the same physical laptop in both case, it could make sense that pp12345 is not equal to pp12345 when it comes time for the QM to do its thing with that ID. HOWEVER....


A. The Queue Manager in this scenario is running on Linux. Does that eliminate the Windows SID from the conversation?

B. When I use a second channel that has a blank MCAUSER and no CHLAUTH rule that covers that channel name, I can connect to the QM, whether its pp12345 logged on at work or pp12345 logged on at home. I can access the queues my group membership says I can, and I get the 2035s I'm supposed to when I try to access a queue I'm not supposed to. Why would CHLAUTH be sensitive to SIDs (if they are in play at all, see point A) but the setmqaut rules don't care?


When I log on at home I'm logging into my laptop before I establish the VPN, logging into the 'domain' and not the local laptop name, so cached credentials are in play. Once my VPN is established I do execute my log on script again to establish my shared drive mappings, and I assume to log into my domain again, this time for real. So I'll buy the idea that the SID being presented over the client connection is different when I'm coming in over the VPN. But why would setmqaut rules be immune to that (which have historically been very sensitive to SIDs in my experience) but the CHLAUTH rules get tripped up by it?

At least this problem is consistent. I've repeated it 3 different days/nights. Things work just fine on the intranet, but the CHLAUTH rule for User mapping fails to fire when dealing with a connection over a VPN. I'm building a new QM today on a new server and will test against it. If it works the same way against a second QM its PMR time.

"So, whip up a SVRCONN with no mapping and put ***@domain-or-host in the MCAUSER and keep changing the domain-or-host part until you find one that works. Then put that fully-qualified value in the channel mapping rule for your target channel. If the client-facing part of the CHLAUTH (the part that evaluates the client ID on the connection) is resolving strings, this will work all the time. If not you'd actually have to know all the ***@host and ***@domains that could be sent in."

I can't create a channel with ***@myhost because the MCAUSER field is restricted to 12 characters on non Windows platforms. This being a Linux queue manager I would only be able to get in the first few letters of the host name.

A channel with ***@mydomain in the MCAUSER allows me to connect and I see the channel running as ***@mydomain. Reminder: Another channel with a blank MCAUSER and no CHLAUTH rule runs as pp12345 (no domain appended), whether I connect from home or the office.

I set up a new channel with a Bogus ID in the MCAUSER.
I then set up a CHLAUTH rule looking for ***@mydomain to match against for this new channel.

DISPLAY CHLAUTH (PETER.TEST.6) ALL
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.6) TYPE(USERMAP)
DESCR( ) CUSTOM( )
ADDRESS(*) CLNTUSER(***@xxx)
MCAUSER(abc123) USERSRC(MAP)
ALTDATE(2013-10-15) ALTTIME(08.48.24)


The rule does not see the client connection as a match. I am in the office right now. The connection is rejected and the user ID in the Authority Event message is the bogus ID hard coded in the channel. Sooooooo, this says to me the CHLAUTH is behaving slightly differently than setmqaut / OAM but we (or at least I) already suspected that.

Apparently pp12345 or ***@domain are being treated the same by the OAM, but CHLAUTH is somehow seeing things differently.



Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of T.Rob
Sent: Monday, October 14, 2013 11:06 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Hi Peter,

I've been trying for YEARS to get the Infocenter setmqaut examples all changed to use -g instead of -p. There is only one case where the -p does what you expect, it's Windows and even there the technique isn't at all reliable. Here's the scoop.

When you issue setmqaut in Windows, it stores the SID that is resolved. You give it a string and then Windows name resolution looks first at the local box, then at all the domains. The OAM saves the string *and* the SID. Now let's see what happens when you actually try to connect.

If you connect from a Windows device, the SID provided is that of the ID as resolved by the WMQ client. Sometimes that ID is local, sometimes it is the domain account. Sometimes it can actually change depending on whether you are connected to the network *before* or *after* you log into Windows. Depending on the AD policy you might use a cached ID or a local account.

When the Windows client connects, the QMgr gets the SID and tries to resolve it. Whether it resolves depends on the interaction of AD policy between the WMQ host, the laptop and the domain. In some cases a local account is resolved when the laptop is on the VPN but not when it is connected directly to the intranet. In some cases the laptop uses a domain account at all times. Depends on AD policy. The ability of the QMgr to resolve that SID may change depending on *which* SID is presented and on the connection itself. Assuming the ID presented by the laptop is static or at least is good, and the QMgr's host still can't resolve it, another issue is the trust relationship between the QMgr's host and the domains it knows about. The SID can live in only one domain and if that domain either drops out of the search path or refuses to resolve the laptop whilst connected remotely due to reduced trust of remote devices, again an intermittent failure.

Sometimes though the client connection itself cannot resolve the SID. This can be because it is a domain account and the domain isn't available or that policies alter the domain trust when the device is remote. Other times it is because the ID presented is set through configuration to one that simply does not exist and can't be resolved by Windows. In all these cases a string is sent without a SID, just like with non-Windows platforms. When a string is received by the QMgr it tries to resolve the string using the local domain search path. First local, then the domains that it knows about. The *first* domain to resolve the string returns a SID. If that SID matches what the QMgr resolved the very first time, you are golden. However, if the ID in question exists in more than one place in the search path it can resolve to a SID that does *not* match what setmqaut stored. Depends on the search path and that can change at run time. Again, this can lead to intermittent failures.

I believe there's a case where the client sends a SID that doesn't match the string. For example, your JMS app sets the ID to "mqm" but the client sends the SID of the local user. Not sure if that's true and if so which client versions it applies to. Also, I do not know whether the CHLAUTH rules evaluate the SID, the string or both, when evaluating matches on Client ID.

The only way I've ever found to mitigate all of this is to use a fully-qualified value such as ***@workstationname or ***@domain. This must be done when issuing the setmqaut command and then subsequently for every configuration reference to the ID such as MCAUSER or CHLAUTH. I've stated this in all my conference sessions and tried to influence others to do so in theirs and even had some luck in getting the Infocenter updated but it is far from what I would consider to be well documented.

Part of the problem is that none of this is unique to WMQ. *Any* software that tries to resolve strings to Windows accounts has all of these issues. In fact, I believe that is part of the reason it's not well documented by IBM - I think it's generally considered to be a Windows accounts issue and not strictly a WMQ issue. To a deeply skilled AD person, resolving SIDs or string values through the domain search path is well known. To WMQ admins it is a black art. That's pretty much the case with anything adjacent to WMQ. The mechanics of X.509 certificates, signing, the TLS protocol, etc. are all well documented elsewhere. The Infocenter docs on these began to improve when it became clear that WMQ customers weren't finding these external sources and the difficulty in doing anything with TLS made it a WMQ problem. Same thing with the WMQ administrative overlap in PowerHA, VCS, MSCS, etc. All generally considered out of scope for the WMQ Infocenter but would be extremely helpful for WMQ admins if more of it were there.

So, whip up a SVRCONN with no mapping and put ***@domain-or-host in the MCAUSER and keep changing the domain-or-host part until you find one that works. Then put that fully-qualified value in the channel mapping rule for your target channel. If the client-facing part of the CHLAUTH (the part that evaluates the client ID on the connection) is resolving strings, this will work all the time. If not you'd actually have to know all the ***@host and ***@domains that could be sent in.

Filling in for Roger, we *know* that MQAUSX will resolve the string presented by the client ID and not the SID. If you have an MCAUSER that you know works but CHLAUTH is still intermittent, MQAUSX can resolve the string presented and map to a known good MCAUSER (also in ***@domain format) so it works consistently.

Happy to work with you offline on this. Turns out I have a bit of time this week. If this doesn't fix it, call me.

-- T.Rob


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 20:54 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Here is the test using the IP address of the client server inside the data center. This test case has the mapping take effect, and the runcheck shows that. Actual IP address values changed to protect the innocent, although the # of digits is the same as the actual IP address.

DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('10.320.242.284')
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123)



Here is the test using the IP address of my laptop coming in over VPN, as seen from the queue manager. This test case is the one where the mapping does NOT take effect. Actual IP address values changed to protect the innocent, although the # of digits is the same as the actual IP address.

DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('10.257.2.50')
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123)

According to the runcheck, and common sense, this should also cause the ID to be flipped from pp12345 to abc123, but for some crazy reason it does not when I'm client connected to the QM over VPN.


Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 12:58 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

I did not for the MCAUSER because I only have a dummy bogus ID hard coded in there as a blocker.

I did not for the CHLAUTH rule because none of the examples in the Info Center mention needing to specify the domain. And when the Authority Events were thrown the ID listed in the event message did not have a domain, so I wanted to supply that exact ID into the CHLAUTH rule. I looked in the CHLAUTH presentation from the 2013 MQ Tech Conference and the only time a domain is used in the examples is once or twice on the ID to be used for the effective MCAUSER, never for the incoming ID to be matched against.


Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of T.Rob
Sent: Monday, October 14, 2013 11:50 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

So have you tried the ***@domain format when specifying MCAUSER in the channel or mapping rule?


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 9:36 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

"but are the accounts on the home and office PCs local or domain accounts"
The home and office PC are one and the same, my laptop that I bring with me.

I am logged in as a domain ID on my laptop. I use that same domain ID log in when I get onto a server with just the MQ Client to use as another test case.

I never see the domain info when I see the ID displayed in an Authority Event message or in the MCAUSER field of a running channel instance.


Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Neil Casey
Sent: Monday, October 14, 2013 9:21 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Hi,

this might not be relevant, but are the accounts on the home and office PCs local or domain accounts, and is the server using domain accounts?

If your home PC has a local account pp12345, and the RDP machine in the office uses a domain login (also pp12345 but of course actually a different account) then that might account for the different behaviour.

However, the manual doesn't mention that domain or SID is checked... it just says the client asserted userid.

Regards,


Neil Casey
mailto:Neil_Casey-8K57OPj+***@public.gmane.org mobile: +61 414 615 334

[cid:image001.png-***@public.gmane.org]




On 15/10/2013, at 12:02 AM, "Costa, D. (Damian)" <DamianC-3zJjxGF14/***@public.gmane.org<mailto:DamianC-3zJjxGF14/***@public.gmane.org>> wrote:

Hi,
Peter we're doing the same sort of stuff but on MQ V 7.1 we are also dialling into the office network via VPN's and such but there is no connectivity failures to MQ V7.1 qmgrs with chl auth rules enabled.

Looks to me you'll really have to look under the covers here. So no avoiding a trace file or two I'm afraid.


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 14 October 2013 02:53 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Interesting. I decided to play around with this some more last night. The behavior reverted to what I had originally posted - the CHLAUTH rule to map pp12345 to abc123 was not being invoked even though I was connecting over the named channel and as that ID.

This morning its working again as expected.

My test cases are identical except for one thing I realized. When I'm working from home they don't work as expected, when I'm logged in at the office they work as expected. When I'm working from home I'm coming in over a VPN tunnel. The MQ Client connection originates from my physical laptop where I am logged in as pp12345, and the Queue Manager resides on a server inside our data center.

I originally set up the CHLAUTH rule when I was working from home and never got the expected mapping to work - my opening post. When I reported it started working, I was in the office. Last night it stopped working, I was at home. This morning its working again as I test from the office.

Even though there is no CHLAUTH rule based on IP address I did try the following when I was working from home. I RDP'ed onto an unrelated server that had MQ Client installed and repeated the same test. Even though I and my laptop were at home coming in over the VPN, my test case was executing directly on the server. The CHLAUTH rule worked. And I tried that same test this morning in the office, RDP'ing to the other server. It works. So its not IP based.

It seems the connection over VPN is doing something that causes the CHLAUTH rule to not fire. Its not IP address related, since I proved coming from different IPs doesn't matter, and there isn't an IP based CHLAUTH rule anyway. I thought maybe the ID that was sent by the client was somehow messed with over the VPN connection, but that's not it because when I tried to connect over another client channel with a blank MCAUSER and no CHLAUTH rule the ID shown in the running channel was pp12345. And if I tried to access a queue I wasn't allowed to the Authority Event showed pp12345.

Very odd. Anyone have any ideas why this is behaving like this?

I'm going to try one more time tonight from home and if the pattern persists I guess its time to run a trace on the Queue Manager for both test cases (from the office and from home) and open a PMR.

Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Friday, October 11, 2013 10:00 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Damian,
I suspected that, but when I make a connection over the channel the active channel shows the ID in use as lowercase.
When I try to access queues I don't have rights to, the Authority Events show the ID in lowercase as well.

I think everything is using lowercase.


This morning, its working as expected. No changes were made to the channel or the CHLAUTH rules. The same test cases used yesterday that were not causing the mapping to kick in are working as expected today. The only thing done was after I sent the original email I started playing with the RUNCHECK option of the DISPLAY CHLAUTH command to see what it returned. Its as if the RUNCHECK gave the QM a kick in the pants to start respecting this USERMAP CHLAUTH rule. Other CHLAUTH rules (not related to mapping User IDs) were working fine before this though. New USERMAP rules I have played with this morning all work right away as expected.


3 : DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('9.999.999.999')
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123)


By the way, I tried this first without the quotes around the value in the CLNTUSER field and got "ChlAuth not found". I guess this would be the MQSC display command folding my ID from lowercase to uppercase and PP12345 not matching pp12345, so the display command didn't get a hit in that case. But I do believe its lowercase being used all around during execution.

I'm just puzzled why everything works normally this morning.


Neil,
I agree with you that its trivial to set any ID you want as a client. We will be using Captialware's Security Exit to do real authentication of the client on the other end, then using mapping rules to have the connection run as the ID we want.

Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Costa, D. (Damian)
Sent: Friday, October 11, 2013 6:17 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

We've had issues with this before and it turns out that at the domain level the account is identified by uppercase values instead of lower case .
What happens if you add a chl auth rule with your clntuser in upper case?

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 11 October 2013 01:48 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Cannot get CHLAUTH Client ID Mapping to work

My client is MQ 7.5.0.2 on a Windows 7 desktop.
The Queue Manager is MQ 7.5.0.2 on a RHEL 6.4 server.
CHLAUTH is enabled.

DISPLAY QMGR CHLAUTH CMDLEVEL
AMQ8408: Display Queue Manager details.
QMNAME(MYQM) CHLAUTH(ENABLED)
CMDLEVEL(750)


Here's the MQ Client channel I'm testing with on my Lab server.

DIS CHANNEL(PETER.TEST.1) ALL
AMQ8414: Display Channel details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
ALTDATE(2013-10-10) ALTTIME(18.51.26)
COMPHDR(NONE) COMPMSG(NONE)
DESCR( ) DISCINT(0)
HBINT(30) KAINT(AUTO)
MAXINST(999999999) MAXINSTC(999999999)
MAXMSGL(104857600) MCAUSER(BOGUS_ID_123)
MONCHL(QMGR) RCVDATA( )
RCVEXIT( ) SCYDATA( )
SCYEXIT( ) SENDDATA( )
SENDEXIT( ) SHARECNV(10)
SSLCAUTH(REQUIRED) SSLCIPH( )
SSLPEER( ) TRPTYPE(TCP)


And here is my CHLAUTH rule.

DISPLAY CHLAUTH (PETER.TEST.1) ALL
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
DESCR( ) CUSTOM( )
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123) USERSRC(MAP)
ALTDATE(2013-10-10) ALTTIME(18.58.23)



I am logged into my PC as pp12345. And every time I connect to this queue manager over the PETER.TEST.1 channel the ID the channel runs as is BOGUS_ID_123. MQRC 2035. Authority Event message shows BOGUS_ID_123. Why is the CHLAUTH rule not kicking in and changing the connection to run as abc123?

If I blank out the MCAUSER on the channel, then I connect as pp12345. I happen to have access to some queues on this QM as this pp12345 ID and I can open those queues. If I do a channel status it shows me running as pp12345, not abc123 (see below). If I try and open some other queues I don't have access to, MQRC 2035 and the Authority Event message shows the pp12345 ID. Again, why is the CHLAUTH rule not kicking in and changing my connection to abc123?

Nothing in the queue manager error logs.


display chstatus(PETER.TEST.1) all
AMQ8417: Display Channel Status details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
BUFSRCVD(9) BUFSSENT(8)
BYTSRCVD(1628) BYTSSENT(1444)
CHSTADA(2013-10-10) CHSTATI(19.42.48)
COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)
COMPRATE(0,0) COMPTIME(0,0)
CONNAME(10.147.130.226) CURRENT
EXITTIME(0,0) HBINT(30)
JOBNAME(0000B7EF00000F73) LOCLADDR(::ffff:99.111.222.99(1414))
LSTMSGDA(2013-10-10) LSTMSGTI(19.42.49)
MCASTAT(RUNNING) MCAUSER(pp12345)
MONCHL(LOW) MSGS(2)
RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)
SSLCERTI( ) SSLKEYDA( )
SSLKEYTI( ) SSLPEER( )
SSLRKEYS(0) STATUS(RUNNING)
STOPREQ(NO) SUBSTATE(RECEIVE)
CURSHCNV(1) MAXSHCNV(10)
RVERSION(07050002) RPRODUCT(MQCC)


Peter Potkay




************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>


________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>
************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Potkay, Peter M (CTO Architecture + Engineering)
2013-10-17 20:21:43 UTC
Permalink
Further testing shows that over an open channel with no MCAUSER and no CHLAUTH rule, if I try and access a queue I don't have authority to access I get the same user ID in lowercase in the MQ error logs. But over the channel blocked by CHLAUTH I get lowercase from work and uppercase from home.


What's up with that? CHLAUTH sees the ID differently than OAM based on the fact that the client connection is over a VPN?!




>From the office, intranet connection, no VPN
----- amqrmrsa.c : 898 --------------------------------------------------------
10/17/2013 07:23:24 AM - Process(46621.8716) User(mqm) Program(amqzlaa0)
Host(myServer) Installation(Installation1)
VRMF(7.5.0.2) QMgr(MYQM)

AMQ8077: Entity 'pp12345 ' has insufficient authority to access object
'MY.QUEUE'.

EXPLANATION:
The specified entity is not authorized to access the required object. The
following requested permissions are unauthorized: put
ACTION:
Ensure that the correct level of authority has been set for this entity against
the required object, or ensure that the entity is a member of a privileged
group.


>From Home over VPN:
----- amqzfubx.c : 624 --------------------------------------------------------
10/17/2013 03:51:47 PM - Process(46621.8872) User(mqm) Program(amqzlaa0)
Host(myServer) Installation(Installation1)
VRMF(7.5.0.2) QMgr(MYQM)

AMQ8077: Entity 'pp12345 ' has insufficient authority to access object
'MY.QUEUE'.

EXPLANATION:
The specified entity is not authorized to access the required object. The
following requested permissions are unauthorized: put
ACTION:
Ensure that the correct level of authority has been set for this entity against
the required object, or ensure that the entity is a member of a privileged
group.
----- amqzfubx.c : 624 --------------------------------------------------------




>>>>>>>>>>>And over the channel with the blocking ADDRRESSMAP rule.


>From the office, intranet connection, no VPN
----- amqrmrsa.c : 898 --------------------------------------------------------
10/16/2013 12:48:20 PM - Process(47087.5704) User(mqm) Program(amqrmppa)
Host(myServer) Installation(Installation1)
VRMF(7.5.0.2) QMgr(MYQM)

AMQ9777: Channel was blocked

EXPLANATION:
The inbound channel 'PETER.TEST.3' was blocked from address '11.111.2.333'
because the active values of the channel matched a record configured with
USERSRC(NOACCESS). The active values of the channel were 'CLNTUSER(pp12345)'.
ACTION:
Contact the systems administrator, who should examine the channel
authentication records to ensure that the correct settings have been
configured. The ALTER QMGR CHLAUTH switch is used to control whether channel
authentication records are used. The command DISPLAY CHLAUTH can be used to
query the channel authentication records.


>From Home over VPN:
----- amqrmrsa.c : 898 --------------------------------------------------------
10/16/2013 08:04:13 PM - Process(47087.5793) User(mqm) Program(amqrmppa)
Host(myServer) Installation(Installation1)
VRMF(7.5.0.2) QMgr(MYQM)

AMQ9777: Channel was blocked

EXPLANATION:
The inbound channel 'PETER.TEST.3' was blocked from address '11.222.333.444'
because the active values of the channel matched a record configured with
USERSRC(NOACCESS). The active values of the channel were 'CLNTUSER(PP12345)'.
ACTION:
Contact the systems administrator, who should examine the channel
authentication records to ensure that the correct settings have been
configured. The ALTER QMGR CHLAUTH switch is used to control whether channel
authentication records are used. The command DISPLAY CHLAUTH can be used to
query the channel authentication records.




Peter Potkay


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Wednesday, October 16, 2013 8:33 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Success!!!

When I got home I tried to connect over the channel that had this CHLAUTH rule block all connections on it.

DISPLAY CHLAUTH (PETER.TEST.3) ALL
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.3) TYPE(ADDRESSMAP)
DESCR( ) CUSTOM( )
ADDRESS(*) USERSRC(NOACCESS)
WARN(NO) ALTDATE(2013-10-16)
ALTTIME(12.48.04)

The above rule was suggested by Morag as sort of a diagnostic rule that was expected to fail, but in the process would record the incoming ID. Apparently the only way to get this info short of a running a trace.

The connection attempt from home over VPN failed as expected with a 2035, and the QM error log recorded this:

AMQ9777: Channel was blocked
EXPLANATION:
The inbound channel 'PETER.TEST.3' was blocked from address '11.222.333.444'
because the active values of the channel matched a record configured with
USERSRC(NOACCESS). The active values of the channel were 'CLNTUSER(PP12345)'.


The connection attempt from the office (no VPN involved) failed as expected with a 2035, and the QM error log recorded this:

AMQ9777: Channel was blocked

EXPLANATION:
The inbound channel 'PETER.TEST.3' was blocked from address '11.111.77.444'
because the active values of the channel matched a record configured with
USERSRC(NOACCESS). The active values of the channel were 'CLNTUSER(pp12345)'.



Over the Intranet the ID is presented as lowercase pp12345, and over VPN as uppercase PP12345. Why the difference?!
MQ Client is MQ 7.5.0.2 on Windows 7 Laptop
MQ Server is MQ 7.5.0.2 on Red Hat Linux server.


At this point its obvious I needed a rule to cover both IDs, upper and lower case.

So back to the original channel PETER.TEST.1 and its CHLAUTH rule, er, rules we go.

DISPLAY CHLAUTH (PETER.TEST.1) ALL
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
DESCR( ) CUSTOM( )
ADDRESS( ) CLNTUSER(PP12345)
MCAUSER(abc123) USERSRC(MAP)
ALTDATE(2013-10-16) ALTTIME(20.06.46)
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
DESCR( ) CUSTOM( )
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123) USERSRC(MAP)
ALTDATE(2013-10-10) ALTTIME(18.58.23)


And the connection from home over the VPN finally gets mapped by the new rule that looks for upper case PP12345. Just need to verify that the other rule for the lowercase pp12345 will still work for when I'm in the office and not using VPN.

So I learned a good diagnostic trick (thanks Morag!), and we apparently got a pair of rules in place that cover both scenarios now. The big question is: Why is the ID's case changing simply by using VPN or not? And is this only specific to CHLAUTH? Because the OAM never got tripped up by this - it would allow or reject my access to queues as expected regardless of from where I was connected if I was using a channel not dealing with the CHLAUTH rule.

And Morag, in your upcoming blog on how to maintain existing CHLAUTH rules, could you also include the use case where we have 2 rules with the same exact name like above? How would I specify which one I wanted to edit or delete if they both have the same name and are of the same type?

Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of T.Rob
Sent: Tuesday, October 15, 2013 10:20 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Never mind then. I thought I read that the systems involved were Windows. Systems other than Windows will only evaluate strings for IDs. In that case pp1234 really *is* pp1234 as far as the QMgr is concerned.


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Tuesday, October 15, 2013 9:23 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Going on the theory that the SID presented when I am logged on from home is different than the SID presented when I am logged in at work, even though I type in the same ID and password into the same physical laptop in both case, it could make sense that pp12345 is not equal to pp12345 when it comes time for the QM to do its thing with that ID. HOWEVER....


A. The Queue Manager in this scenario is running on Linux. Does that eliminate the Windows SID from the conversation?

B. When I use a second channel that has a blank MCAUSER and no CHLAUTH rule that covers that channel name, I can connect to the QM, whether its pp12345 logged on at work or pp12345 logged on at home. I can access the queues my group membership says I can, and I get the 2035s I'm supposed to when I try to access a queue I'm not supposed to. Why would CHLAUTH be sensitive to SIDs (if they are in play at all, see point A) but the setmqaut rules don't care?


When I log on at home I'm logging into my laptop before I establish the VPN, logging into the 'domain' and not the local laptop name, so cached credentials are in play. Once my VPN is established I do execute my log on script again to establish my shared drive mappings, and I assume to log into my domain again, this time for real. So I'll buy the idea that the SID being presented over the client connection is different when I'm coming in over the VPN. But why would setmqaut rules be immune to that (which have historically been very sensitive to SIDs in my experience) but the CHLAUTH rules get tripped up by it?

At least this problem is consistent. I've repeated it 3 different days/nights. Things work just fine on the intranet, but the CHLAUTH rule for User mapping fails to fire when dealing with a connection over a VPN. I'm building a new QM today on a new server and will test against it. If it works the same way against a second QM its PMR time.

"So, whip up a SVRCONN with no mapping and put ***@domain-or-host in the MCAUSER and keep changing the domain-or-host part until you find one that works. Then put that fully-qualified value in the channel mapping rule for your target channel. If the client-facing part of the CHLAUTH (the part that evaluates the client ID on the connection) is resolving strings, this will work all the time. If not you'd actually have to know all the ***@host and ***@domains that could be sent in."

I can't create a channel with ***@myhost because the MCAUSER field is restricted to 12 characters on non Windows platforms. This being a Linux queue manager I would only be able to get in the first few letters of the host name.

A channel with ***@mydomain in the MCAUSER allows me to connect and I see the channel running as ***@mydomain. Reminder: Another channel with a blank MCAUSER and no CHLAUTH rule runs as pp12345 (no domain appended), whether I connect from home or the office.

I set up a new channel with a Bogus ID in the MCAUSER.
I then set up a CHLAUTH rule looking for ***@mydomain to match against for this new channel.

DISPLAY CHLAUTH (PETER.TEST.6) ALL
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.6) TYPE(USERMAP)
DESCR( ) CUSTOM( )
ADDRESS(*) CLNTUSER(***@xxx)
MCAUSER(abc123) USERSRC(MAP)
ALTDATE(2013-10-15) ALTTIME(08.48.24)


The rule does not see the client connection as a match. I am in the office right now. The connection is rejected and the user ID in the Authority Event message is the bogus ID hard coded in the channel. Sooooooo, this says to me the CHLAUTH is behaving slightly differently than setmqaut / OAM but we (or at least I) already suspected that.

Apparently pp12345 or ***@domain are being treated the same by the OAM, but CHLAUTH is somehow seeing things differently.



Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of T.Rob
Sent: Monday, October 14, 2013 11:06 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Hi Peter,

I've been trying for YEARS to get the Infocenter setmqaut examples all changed to use -g instead of -p. There is only one case where the -p does what you expect, it's Windows and even there the technique isn't at all reliable. Here's the scoop.

When you issue setmqaut in Windows, it stores the SID that is resolved. You give it a string and then Windows name resolution looks first at the local box, then at all the domains. The OAM saves the string *and* the SID. Now let's see what happens when you actually try to connect.

If you connect from a Windows device, the SID provided is that of the ID as resolved by the WMQ client. Sometimes that ID is local, sometimes it is the domain account. Sometimes it can actually change depending on whether you are connected to the network *before* or *after* you log into Windows. Depending on the AD policy you might use a cached ID or a local account.

When the Windows client connects, the QMgr gets the SID and tries to resolve it. Whether it resolves depends on the interaction of AD policy between the WMQ host, the laptop and the domain. In some cases a local account is resolved when the laptop is on the VPN but not when it is connected directly to the intranet. In some cases the laptop uses a domain account at all times. Depends on AD policy. The ability of the QMgr to resolve that SID may change depending on *which* SID is presented and on the connection itself. Assuming the ID presented by the laptop is static or at least is good, and the QMgr's host still can't resolve it, another issue is the trust relationship between the QMgr's host and the domains it knows about. The SID can live in only one domain and if that domain either drops out of the search path or refuses to resolve the laptop whilst connected remotely due to reduced trust of remote devices, again an intermittent failure.

Sometimes though the client connection itself cannot resolve the SID. This can be because it is a domain account and the domain isn't available or that policies alter the domain trust when the device is remote. Other times it is because the ID presented is set through configuration to one that simply does not exist and can't be resolved by Windows. In all these cases a string is sent without a SID, just like with non-Windows platforms. When a string is received by the QMgr it tries to resolve the string using the local domain search path. First local, then the domains that it knows about. The *first* domain to resolve the string returns a SID. If that SID matches what the QMgr resolved the very first time, you are golden. However, if the ID in question exists in more than one place in the search path it can resolve to a SID that does *not* match what setmqaut stored. Depends on the search path and that can change at run time. Again, this can lead to intermittent failures.

I believe there's a case where the client sends a SID that doesn't match the string. For example, your JMS app sets the ID to "mqm" but the client sends the SID of the local user. Not sure if that's true and if so which client versions it applies to. Also, I do not know whether the CHLAUTH rules evaluate the SID, the string or both, when evaluating matches on Client ID.

The only way I've ever found to mitigate all of this is to use a fully-qualified value such as ***@workstationname or ***@domain. This must be done when issuing the setmqaut command and then subsequently for every configuration reference to the ID such as MCAUSER or CHLAUTH. I've stated this in all my conference sessions and tried to influence others to do so in theirs and even had some luck in getting the Infocenter updated but it is far from what I would consider to be well documented.

Part of the problem is that none of this is unique to WMQ. *Any* software that tries to resolve strings to Windows accounts has all of these issues. In fact, I believe that is part of the reason it's not well documented by IBM - I think it's generally considered to be a Windows accounts issue and not strictly a WMQ issue. To a deeply skilled AD person, resolving SIDs or string values through the domain search path is well known. To WMQ admins it is a black art. That's pretty much the case with anything adjacent to WMQ. The mechanics of X.509 certificates, signing, the TLS protocol, etc. are all well documented elsewhere. The Infocenter docs on these began to improve when it became clear that WMQ customers weren't finding these external sources and the difficulty in doing anything with TLS made it a WMQ problem. Same thing with the WMQ administrative overlap in PowerHA, VCS, MSCS, etc. All generally considered out of scope for the WMQ Infocenter but would be extremely helpful for WMQ admins if more of it were there.

So, whip up a SVRCONN with no mapping and put ***@domain-or-host in the MCAUSER and keep changing the domain-or-host part until you find one that works. Then put that fully-qualified value in the channel mapping rule for your target channel. If the client-facing part of the CHLAUTH (the part that evaluates the client ID on the connection) is resolving strings, this will work all the time. If not you'd actually have to know all the ***@host and ***@domains that could be sent in.

Filling in for Roger, we *know* that MQAUSX will resolve the string presented by the client ID and not the SID. If you have an MCAUSER that you know works but CHLAUTH is still intermittent, MQAUSX can resolve the string presented and map to a known good MCAUSER (also in ***@domain format) so it works consistently.

Happy to work with you offline on this. Turns out I have a bit of time this week. If this doesn't fix it, call me.

-- T.Rob


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 20:54 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Here is the test using the IP address of the client server inside the data center. This test case has the mapping take effect, and the runcheck shows that. Actual IP address values changed to protect the innocent, although the # of digits is the same as the actual IP address.

DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('10.320.242.284')
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123)



Here is the test using the IP address of my laptop coming in over VPN, as seen from the queue manager. This test case is the one where the mapping does NOT take effect. Actual IP address values changed to protect the innocent, although the # of digits is the same as the actual IP address.

DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('10.257.2.50')
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123)

According to the runcheck, and common sense, this should also cause the ID to be flipped from pp12345 to abc123, but for some crazy reason it does not when I'm client connected to the QM over VPN.


Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 12:58 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

I did not for the MCAUSER because I only have a dummy bogus ID hard coded in there as a blocker.

I did not for the CHLAUTH rule because none of the examples in the Info Center mention needing to specify the domain. And when the Authority Events were thrown the ID listed in the event message did not have a domain, so I wanted to supply that exact ID into the CHLAUTH rule. I looked in the CHLAUTH presentation from the 2013 MQ Tech Conference and the only time a domain is used in the examples is once or twice on the ID to be used for the effective MCAUSER, never for the incoming ID to be matched against.


Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of T.Rob
Sent: Monday, October 14, 2013 11:50 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

So have you tried the ***@domain format when specifying MCAUSER in the channel or mapping rule?


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Monday, October 14, 2013 9:36 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

"but are the accounts on the home and office PCs local or domain accounts"
The home and office PC are one and the same, my laptop that I bring with me.

I am logged in as a domain ID on my laptop. I use that same domain ID log in when I get onto a server with just the MQ Client to use as another test case.

I never see the domain info when I see the ID displayed in an Authority Event message or in the MCAUSER field of a running channel instance.


Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Neil Casey
Sent: Monday, October 14, 2013 9:21 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Hi,

this might not be relevant, but are the accounts on the home and office PCs local or domain accounts, and is the server using domain accounts?

If your home PC has a local account pp12345, and the RDP machine in the office uses a domain login (also pp12345 but of course actually a different account) then that might account for the different behaviour.

However, the manual doesn't mention that domain or SID is checked... it just says the client asserted userid.

Regards,


Neil Casey
mailto:Neil_Casey-8K57OPj+***@public.gmane.org mobile: +61 414 615 334

[cid:image001.png-***@public.gmane.org]




On 15/10/2013, at 12:02 AM, "Costa, D. (Damian)" <DamianC-3zJjxGF14/***@public.gmane.org<mailto:DamianC-3zJjxGF14/***@public.gmane.org>> wrote:

Hi,
Peter we're doing the same sort of stuff but on MQ V 7.1 we are also dialling into the office network via VPN's and such but there is no connectivity failures to MQ V7.1 qmgrs with chl auth rules enabled.

Looks to me you'll really have to look under the covers here. So no avoiding a trace file or two I'm afraid.


From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 14 October 2013 02:53 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Interesting. I decided to play around with this some more last night. The behavior reverted to what I had originally posted - the CHLAUTH rule to map pp12345 to abc123 was not being invoked even though I was connecting over the named channel and as that ID.

This morning its working again as expected.

My test cases are identical except for one thing I realized. When I'm working from home they don't work as expected, when I'm logged in at the office they work as expected. When I'm working from home I'm coming in over a VPN tunnel. The MQ Client connection originates from my physical laptop where I am logged in as pp12345, and the Queue Manager resides on a server inside our data center.

I originally set up the CHLAUTH rule when I was working from home and never got the expected mapping to work - my opening post. When I reported it started working, I was in the office. Last night it stopped working, I was at home. This morning its working again as I test from the office.

Even though there is no CHLAUTH rule based on IP address I did try the following when I was working from home. I RDP'ed onto an unrelated server that had MQ Client installed and repeated the same test. Even though I and my laptop were at home coming in over the VPN, my test case was executing directly on the server. The CHLAUTH rule worked. And I tried that same test this morning in the office, RDP'ing to the other server. It works. So its not IP based.

It seems the connection over VPN is doing something that causes the CHLAUTH rule to not fire. Its not IP address related, since I proved coming from different IPs doesn't matter, and there isn't an IP based CHLAUTH rule anyway. I thought maybe the ID that was sent by the client was somehow messed with over the VPN connection, but that's not it because when I tried to connect over another client channel with a blank MCAUSER and no CHLAUTH rule the ID shown in the running channel was pp12345. And if I tried to access a queue I wasn't allowed to the Authority Event showed pp12345.

Very odd. Anyone have any ideas why this is behaving like this?

I'm going to try one more time tonight from home and if the pattern persists I guess its time to run a trace on the Queue Manager for both test cases (from the office and from home) and open a PMR.

Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Friday, October 11, 2013 10:00 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

Damian,
I suspected that, but when I make a connection over the channel the active channel shows the ID in use as lowercase.
When I try to access queues I don't have rights to, the Authority Events show the ID in lowercase as well.

I think everything is using lowercase.


This morning, its working as expected. No changes were made to the channel or the CHLAUTH rules. The same test cases used yesterday that were not causing the mapping to kick in are working as expected today. The only thing done was after I sent the original email I started playing with the RUNCHECK option of the DISPLAY CHLAUTH command to see what it returned. Its as if the RUNCHECK gave the QM a kick in the pants to start respecting this USERMAP CHLAUTH rule. Other CHLAUTH rules (not related to mapping User IDs) were working fine before this though. New USERMAP rules I have played with this morning all work right away as expected.


3 : DISPLAY CHLAUTH(PETER.TEST.1) MATCH(RUNCHECK) CLNTUSER('pp12345') ADDRESS('9.999.999.999')
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123)


By the way, I tried this first without the quotes around the value in the CLNTUSER field and got "ChlAuth not found". I guess this would be the MQSC display command folding my ID from lowercase to uppercase and PP12345 not matching pp12345, so the display command didn't get a hit in that case. But I do believe its lowercase being used all around during execution.

I'm just puzzled why everything works normally this morning.


Neil,
I agree with you that its trivial to set any ID you want as a client. We will be using Captialware's Security Exit to do real authentication of the client on the other end, then using mapping rules to have the connection run as the ID we want.

Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Costa, D. (Damian)
Sent: Friday, October 11, 2013 6:17 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Cannot get CHLAUTH Client ID Mapping to work

We've had issues with this before and it turns out that at the domain level the account is identified by uppercase values instead of lower case .
What happens if you add a chl auth rule with your clntuser in upper case?

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: 11 October 2013 01:48 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Cannot get CHLAUTH Client ID Mapping to work

My client is MQ 7.5.0.2 on a Windows 7 desktop.
The Queue Manager is MQ 7.5.0.2 on a RHEL 6.4 server.
CHLAUTH is enabled.

DISPLAY QMGR CHLAUTH CMDLEVEL
AMQ8408: Display Queue Manager details.
QMNAME(MYQM) CHLAUTH(ENABLED)
CMDLEVEL(750)


Here's the MQ Client channel I'm testing with on my Lab server.

DIS CHANNEL(PETER.TEST.1) ALL
AMQ8414: Display Channel details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
ALTDATE(2013-10-10) ALTTIME(18.51.26)
COMPHDR(NONE) COMPMSG(NONE)
DESCR( ) DISCINT(0)
HBINT(30) KAINT(AUTO)
MAXINST(999999999) MAXINSTC(999999999)
MAXMSGL(104857600) MCAUSER(BOGUS_ID_123)
MONCHL(QMGR) RCVDATA( )
RCVEXIT( ) SCYDATA( )
SCYEXIT( ) SENDDATA( )
SENDEXIT( ) SHARECNV(10)
SSLCAUTH(REQUIRED) SSLCIPH( )
SSLPEER( ) TRPTYPE(TCP)


And here is my CHLAUTH rule.

DISPLAY CHLAUTH (PETER.TEST.1) ALL
AMQ8878: Display channel authentication record details.
CHLAUTH(PETER.TEST.1) TYPE(USERMAP)
DESCR( ) CUSTOM( )
ADDRESS( ) CLNTUSER(pp12345)
MCAUSER(abc123) USERSRC(MAP)
ALTDATE(2013-10-10) ALTTIME(18.58.23)



I am logged into my PC as pp12345. And every time I connect to this queue manager over the PETER.TEST.1 channel the ID the channel runs as is BOGUS_ID_123. MQRC 2035. Authority Event message shows BOGUS_ID_123. Why is the CHLAUTH rule not kicking in and changing the connection to run as abc123?

If I blank out the MCAUSER on the channel, then I connect as pp12345. I happen to have access to some queues on this QM as this pp12345 ID and I can open those queues. If I do a channel status it shows me running as pp12345, not abc123 (see below). If I try and open some other queues I don't have access to, MQRC 2035 and the Authority Event message shows the pp12345 ID. Again, why is the CHLAUTH rule not kicking in and changing my connection to abc123?

Nothing in the queue manager error logs.


display chstatus(PETER.TEST.1) all
AMQ8417: Display Channel Status details.
CHANNEL(PETER.TEST.1) CHLTYPE(SVRCONN)
BUFSRCVD(9) BUFSSENT(8)
BYTSRCVD(1628) BYTSSENT(1444)
CHSTADA(2013-10-10) CHSTATI(19.42.48)
COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)
COMPRATE(0,0) COMPTIME(0,0)
CONNAME(10.147.130.226) CURRENT
EXITTIME(0,0) HBINT(30)
JOBNAME(0000B7EF00000F73) LOCLADDR(::ffff:99.111.222.99(1414))
LSTMSGDA(2013-10-10) LSTMSGTI(19.42.49)
MCASTAT(RUNNING) MCAUSER(pp12345)
MONCHL(LOW) MSGS(2)
RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)
SSLCERTI( ) SSLKEYDA( )
SSLKEYTI( ) SSLPEER( )
SSLRKEYS(0) STATUS(RUNNING)
STOPREQ(NO) SUBSTATE(RECEIVE)
CURSHCNV(1) MAXSHCNV(10)
RVERSION(07050002) RPRODUCT(MQCC)


Peter Potkay




************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

********************
Nedbank Limited Reg No 1951/000009/06. The following link displays
the names of the Nedbank Board of Directors and Company Secretary.
[ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only.
The following link will take you to Nedbank's legal notice.
[ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
********************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>


________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>
************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Loading...