Python Forum
pymqi user/password - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Networking (https://python-forum.io/forum-12.html)
+--- Thread: pymqi user/password (/thread-13035.html)



pymqi user/password - ThomasT - Sep-24-2018

Hello

while connecting to a Websphere MQ Queuemanager I get reason code 2035 ("not authorized").
It works in Java with IBM-MQ-Java-classes.

pymqi connection factory has username and password, too.
But it seems it will not work. Username is "usermq". Python runs under Linux with a different user "userpy".
Queuemanager runs under windows.

Can someone give me a working example?

Regards Thomas


RE: pymqi user/password - MDK - Feb-01-2019

Hi!

I sounds like you ran into the same problem as I have done. It looks like no matter what username I use in the script it will only try to authenticate with the linux shell user I'm running the script as. Could it be that the script will be executed as the user who owns the pymqi module files?

Anyway... Did you resolve this? If you did, how did you do it?