PAM authentication on WWW page

From: Sławomir Kolasiński (slawu_at_sus.univ.szczecin.pl)
Date: 08/08/03

  • Next message: Lord Shaolin: "Re: I Need iptables scripts - Samples"
    Date: 8 Aug 2003 01:23:30 -0700
    
    

    Hi.
      I want to write a login web page using Apache and perl. I want it to
    authorize users using PAM. I wrote a script using Authen::PAM perl package
    and it works correctly when I launch it from a terminal. When I run the script
    from my WWW browser it refuses to authenticate anyone. I use service name
    "login" and my Apache is configured to run scripts as user nobody (I guess it
    has something to do with the case).
      How can I make PAM authenticate users even when my script is run as nobody?
    All i really want is to use my system's user database so I don't have to
    put users in pgsql database and synchronize it each time someone adds a new user.

    Thanks
      Slawek


  • Next message: Lord Shaolin: "Re: I Need iptables scripts - Samples"

    Relevant Pages

    • Re: preventing a user to start a process
      ... You can use some perl to split the lines to find out how long the processes ... >> located in file systems that allow execution. ... >> are running for a certain period of time and are not the apache. ... Does anyone know a usable script for that ...
      (freebsd-isp)
    • Apache problem when using DBI
      ... I have a perl script that runs flawlessly from command line but gived ... the ERROR 500 when attempting to run same script through Apache. ... something to the httpd.conf file to fix this. ...
      (perl.dbi.users)
    • Re: CGI
      ... actual perl binary on the local machine. ... A perl module called from your script is not found ... so you don't need to keep looking at the Apache config here. ...
      (perl.beginners)
    • Calling "php -f [file]" from within Perl seems broken
      ... I have a Perl ... script called php_include.cgi that parses a PHP file for inclusion. ... If I run the exact same command in a shell (even as my apache ...
      (comp.lang.php)
    • [Solved] DBD::Oracle 1.46 cant find library
      ... problem was how to make that environment variable visible to apache. ... And now I hav a working perl with Oracle support. ... > years (a perl cgi script that interrogates Oracle databases), ...
      (perl.dbi.users)

  • Quantcast