ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » Passing User ID/Password to MQ Server in perl

Post new topic  Reply to topic
 Passing User ID/Password to MQ Server in perl « View previous topic :: View next topic » 
Author Message
kp_junk72
PostPosted: Fri Apr 21, 2006 12:50 pm    Post subject: Passing User ID/Password to MQ Server in perl Reply with quote

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".

How do we pass userID/Password in Perl.

Thanks in advance,
kp
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Apr 21, 2006 12:59 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The perl API binds to the regular C Client.

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Passing User ID/Password to MQ Server in perl
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.