hotyopa has asked for the wisdom of the Perl Monks concerning the following question:
I have just moved to a new web server which for whatever reason doesn't support .htaccess user authentication. But, after reading an article on Zend about User Authentication using PHP, I wondered whether you couldn't do the same thing in Perl - authentication by sending the requisite HTTP headers, checking user environment variables and manually parsing the .htpasswd file
Does anyone think that this is a viable proposition? The Zend article gives me the HTTP headers to send to get the login box, but I'm not sure about where to look to see if someone is logged in or not, and if so where to find their username and password...
(A note: its not my webserver, so I can't install any modules, and its 5.00503, but CGI.pm is installed)
*~-}hotyopa{-~*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mimicking htaccess user authentication
by Cubes (Pilgrim) on Aug 02, 2001 at 14:47 UTC | |
|
Re: Mimicking htaccess user authentication
by c (Hermit) on Aug 02, 2001 at 03:08 UTC | |
by hotyopa (Scribe) on Aug 02, 2001 at 14:05 UTC | |
by mischief (Hermit) on Aug 02, 2001 at 17:28 UTC |