Posted: Fri Apr 21, 2006 12:50 pm Post subject: Passing User ID/Password to MQ Server in perl
Newbie
Joined: 21 Apr 2006 Posts: 1
Hi,
I have a perl script which gets the queue depths of a remote queue. I am not specifying any userId/password. It works fine if I run from the command line (Linux). But when I execute this as a cgi script from the browser, MQCONNX fails with 2035 error (MQRC_NOT_AUTHORIZED). I am running perl on APACHE. From the MQ Server logs, the userId is being sent as "apache".
The regular C client always passes the OS level user ID that is executing the code.
If you are running Apache as 'apache', and running Perl code within that, then it will always pass 'apache' as the user. _________________ I am *not* the model of the modern major general.
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