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

MQSeries.net Forum Index » IBM MQ API Support » MQCONNXAny On Remote Channel

Post new topic  Reply to topic
 MQCONNXAny On Remote Channel « View previous topic :: View next topic » 
Author Message
Marc
PostPosted: Fri Jan 03, 2003 6:07 am    Post subject: MQCONNXAny On Remote Channel Reply with quote

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
View user's profile Send private message Send e-mail
dgolding
PostPosted: Fri Jan 03, 2003 6:49 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Marc
PostPosted: Fri Jan 03, 2003 8:44 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
dgolding
PostPosted: Sun Jan 05, 2003 11:02 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Marc
PostPosted: Mon Jan 06, 2003 12:06 am    Post subject: Reply with quote

Newbie

Joined: 03 Jan 2003
Posts: 3

Thanks for that at least I won't waste anymore time on this one.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQCONNXAny On Remote Channel
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


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

Copyright © MQSeries.net. All rights reserved.