|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Visual Basic user autentification |
« View previous topic :: View next topic » |
Author |
Message
|
602071 |
Posted: Mon Nov 04, 2002 8:28 am Post subject: Visual Basic user autentification |
|
|
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 |
|
 |
MichaelR |
Posted: Wed Dec 11, 2002 6:44 am Post subject: VB User Authentication.... |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|