bfontana2002@yahoo.com.ar wrote:
> Could someone help me with this issue?.
It sounds like you need to ask the maintainers of the Perl layer; it is
not maintained by IBM.
Regards,
Phil Willoughby
--
Software Engineer (Development)
IBM WebSphere MQ
This is a discussion on User/Password MQ Client when using C (Perl) API - Websphere ; I'm currently trying to connect to an MQ Queue Manager using the MQSeries API which permits the connection to MQ using PERL language. There is no way I can send the user and password information in the connection (CONNX) message. ...
I'm currently trying to connect to an MQ Queue Manager using the MQSeries API which permits the connection to MQ using PERL language. There is no way I can send the user and password information in the connection (CONNX) message.
Reading several forums and documentation I've found that new versions of MQ Clients (except for the Java one) sends the User ID of the process that is communicating with the Queue Manager.
I've tried to set the UserIndentifier and Password fields of the ClientConnection structure but there was no result and I'm still getting the 2035 (Not authorized) reason code.
Inspecting the code of the PERL MQSeries API I found that it uses a C-programmed shared library which uses the MQClient C API.
I cannot set the users on the server because I don't have access to MQ Server to configure them.
Is there a way to set a custom userID/password to send in CONNX command (overriding the UserID got from the operating system) either from MQSeries or from a ad-hoc C program?
Am I doing something wrong using the API?.
The server is running on AIX and the clients on Windows 2000 machines (will also run on AIX machines where put in production).
Could someone help me with this issue?.
Thanks in advance
Bruno
bfontana2002@yahoo.com.ar wrote:
> Could someone help me with this issue?.
It sounds like you need to ask the maintainers of the Perl layer; it is
not maintained by IBM.
Regards,
Phil Willoughby
--
Software Engineer (Development)
IBM WebSphere MQ
I know that PERL layer is not mantained by IBM so I'll rewrite my question. Is possible, with C MQClient API, to send userID/Password in MQCONNX message overriding those obtained from the operating system?.
Thanks again
Bruno
bfontana2002@yahoo.com.ar wrote:
> I know that PERL layer is not mantained by IBM so I'll rewrite my
> question. Is possible, with C MQClient API, to send userID/Password
> in MQCONNX message overriding those obtained from the operating
> system?.
Yes. The usual mistake people make is forgetting to set the Version
field of the MQCNO structure to at least MQCNO_VERSION_2. The default
if MQCNO_VERSION_1...
Regards,
Phil Willoughby
--
Software Engineer (Development)
IBM WebSphere MQ
Phil Willoughby wrote:
> Yes. The usual mistake people make is forgetting to set the Version
> field of the MQCNO structure to at least MQCNO_VERSION_2. The default
> if MQCNO_VERSION_1...
Oops, on reading the docs again it appears you need MQCNO_VERSION_5.
Sorry for that error...
Regards,
Phil