Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by perld

  1. perld

    LDAP interaction

    I'm trying to extract values from an LDAP server. I've a very basic script to grab these using the following: *** START *** my $ldapconn = Net::LDAP->new($ldap{host},port => $ldap{port},version => $ldap{version}) or die "LDAP error: $@\n"; my $ldapbind = $ldapconn->bind($ldap{admin},password...
  2. perld

    Net::SSH::Perl failure via Apache

    Your 'pale idea' was spot on! Added the following to the start of the script: $ENV{HOME} = "/home/apache"; $ENV{USER} = "apache"; ...and it all kicked in! Many thanks. Iain.
  3. perld

    Net::SSH::Perl failure via Apache

    Nothing really seems to jump out here...or do you see something?? *** START SHELL *** HOME: /home/apache LESSOPEN: |/usr/bin/lesspipe.sh %s MAIL: /var/spool/mail/apache PWD: /var/www/cgi-bin LANG: en_GB USER: apache LOGNAME: apache...
  4. perld

    Net::SSH::Perl failure via Apache

    Apache is running as user 'apache' and has a homedir under /home. As mentioned, the script runs fine from shell. I can: $ su - apache $ ./script arg=value ...and all works great, pumping back all the HTML output as expected. It's only when the script is called via the httpd process (running as...
  5. perld

    Net::SSH::Perl failure via Apache

    Have a script using Net::SSH::Perl that connects to remote machines and executes commands. Running the script via a shell as user apache returns as expected. When trying to run the script from a web browser (running as user apache) the script fails at the the line $session->login($user, $pass)...

Part and Inventory Search

Back
Top