Python Forum

Full Version: pymqi user/password
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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?