Look in Websphere MQ System Administration Guide:
Chapter 20: Autorization Service on Windows systems, Page 343 f.
Thanks a lot - that's just what I needed!
If the remote users are using MQ Client to connect to the Queue Manager,
just alter the SVRCONN channel definition to set the MCAUSER to a userid
which exists on the Windows box and has the required MQ security
authority.
Glenn.
Another excellent idea if users are unwilling to remove the security
service from the Queue Manager. I can add a UI field for this value
in my app, but where/how do I set it?
I have code that currently looks like this...
---
MQOD init_mq_object = {MQOD_DEFAULT} ;
MQCD init_mq_channel_definition = {MQCD_CLIENT_CONN_DEFAULT} ;
MQCNO init_mq_connect_options = {MQCNO_DEFAULT} ;
MQLONG mq_open_options ;
mq_object = init_mq_object ;
mq_connection_descriptor = init_mq_connection_descriptor ;
mq_connect_options = init_mq_connect_options ;
strcpy(mq_object.ObjectName, TEXTA("SomeMessageQueueNameHere")) ;
strncpy(mq_channel_definition.ConnectionName,
TEXTA("SomeHost(SomePort)"), MQ_CONN_NAME_LENGTH) ;
strncpy(mq_channel_definition.ChannelName,
TEXTA("SYSTEM.DEF.SVRCONN"), MQ_CHANNEL_NAME_LENGTH) ;
mq_connect_options.ClientConnPtr = &mq_connection_descriptor ;
mq_open_options = MQOO_INPUT_SHARED + MQOO_FAIL_IF_QUIESCING ;
MQCONNX(TEXTA("SomeQueueManagerNameHere"), &mq_connect_options,
&qm_handle, &mq_return_code, &mq_error_number) ; break ;
MQOPEN(qm_handle, &mq_object, mq_open_options, &mq_handle,
&mq_return_code, &mq_error_number) ;
---
There are quite a few fields in the Channel Definition structure
(MQCD) that look like I can put a username in them:
MCAName
UserIdentifier
MCAUserIdentifier
RemoteUserIdentifier
LongMCAUserIdPtr
LongRemoteUserIdPtr
MCASecurityId
RemoteSecurityId
After reading the docs I am still unsure which one(s) to use.
Michael
"Glenn Baddeley" <glenn.b...@team.telstra.com> wrote in message
news:c267kk$6jk$1...@mws-stat-syd.cdn.telstra.com.au...
Glenn.