|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQCONNXAny On Remote Channel |
« View previous topic :: View next topic » |
Author |
Message
|
Marc |
Posted: Fri Jan 03, 2003 6:07 am Post subject: MQCONNXAny On Remote Channel |
|
|
Newbie
Joined: 03 Jan 2003 Posts: 3
|
Could somebody furnish me with an example of using MQCONNXAny to a remote channel from VB 6.0 I need to specify a username and password to connect to a remote channel.
Call MQCNOCD_DEFAULTS(lt_SessionDefaults) 'MQCNO defaults
lt_SessionDefaults.ChannelDef.ChannelName = ms_MQChannel
lt_SessionDefaults.ChannelDef.ConnectionName = ms_MQHostName & "(" & ml_MQPort & ")"
lt_SessionDefaults.ChannelDef.Version = MQCD_VERSION_6
'Connect to queue manager
Call MQCONNXAny(ms_MQQueueManager, lt_SessionDefaults, ml_MQSessionID, ll_CompCode, ll_ReasonCode)
I'm getting error 2035 'No authorisation' with this syntax.
Thanks,
Marc |
|
Back to top |
|
 |
dgolding |
Posted: Fri Jan 03, 2003 6:49 am Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
Hi,
I don't know VB I'm afraid, BUT if you are using MQCONNX your User ID should be in the MQM group - perhaps that's why you're getting 2035 Not authorised errors?
HTH |
|
Back to top |
|
 |
Marc |
Posted: Fri Jan 03, 2003 8:44 am Post subject: |
|
|
Newbie
Joined: 03 Jan 2003 Posts: 3
|
Thanks for that, the userid I need to use is setup correctly I just need to know how to specify it so it overrides my credentials when connecting. |
|
Back to top |
|
 |
dgolding |
Posted: Sun Jan 05, 2003 11:02 pm Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
AFAIK you can't override on the client side your user ID - MQ sends your domain or local user ID name to the server side (assuming the server has access to the domain you are logged in to).
The cheat is of course to set up the server connect channel (SVRCONN) and "hard-code" the user ID there. The draw-back to this is that ANYBODY, ANYWHERE can connect up this same channel, and become this user - so there is no uer validation.
You can write a security exit for the channel, I think somebody posted a free one the other week.
HTH |
|
Back to top |
|
 |
Marc |
Posted: Mon Jan 06, 2003 12:06 am Post subject: |
|
|
Newbie
Joined: 03 Jan 2003 Posts: 3
|
Thanks for that at least I won't waste anymore time on this one. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|