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 » Visual Basic user autentification

Post new topic  Reply to topic
 Visual Basic user autentification « View previous topic :: View next topic » 
Author Message
602071
PostPosted: Mon Nov 04, 2002 8:28 am    Post subject: Visual Basic user autentification Reply with quote

Newbie

Joined: 04 Nov 2002
Posts: 1

Hi,

I´m trying to access MQSeries queues from Visual Basic 6.0, in binding mode. I have developed a .dll that is called from an MTS C++ component.

When using the dll with a visual basic application, it works fine, but when called from the C++ component, it gives an user autorization error. That is because the user under which the C++ component runs, have no privileges in MQSeries.

I want to tell, in the visual basic dll, what user and password to use. But I don´t know how......



Function OpenQueue(QueueName As String, Mannager As String, O_options As Long) As Integer
Dim CompCode As Long ' Completion code
Dim Reason As Long ' Reason code
' Dim O_options As Long ' Open options
Dim od As MQOD ' Object descriptor

MQCONN Mannager, gHcon, CompCode, Reason

If gHcon Then
MQOD_DEFAULTS od
od.ObjectName = QueueName

'O_options = MQOO_OUTPUT + MQOO_INPUT_SHARED
MQOPEN gHcon, od, O_options, gHobj, CompCode, Reason

OpenQueue = Reason

End Function




Thanks
Back to top
View user's profile Send private message
MichaelR
PostPosted: Wed Dec 11, 2002 6:44 am    Post subject: VB User Authentication.... Reply with quote

Apprentice

Joined: 20 May 2002
Posts: 37
Location: Tampa

Have you had any luck resolving this?

It is possible to "override" the MDUID field in the MQMD structure to "pass" the ID of the user running the VB program. This will require "special" permissions at the MQ QMgr object layer.

Will look for your repsonse before attempting to provide details.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Visual Basic user autentification
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.