[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: use modperl to pass authentication to .htaccess
From:       John Saylor <johns () worldwinner ! com>
Date:       2003-10-28 14:41:54
[Download RAW message or body]

hi

( 03.10.28 09:38 -0500 ) Phoebe Reed:
> I know how to get the username password in a perl script, after basic
> authentication, but I do not know if it is possible to go the other
> way - to give the username/pass to an .htaccess protected directory
> from a script.  It seems like it should be easy.....

it is, but not that way. if you have the username/password in your perl
script- then let perl authenticate them. if you must use .htaccess, you
can read the file into your script and do the necessary comparisons.
then, the perl script decide if it denies or completes the http request.

see ch.6 of the eagle book for more on this.

-- 
\js

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic