Hi..
I wrote a module that asks for authentication, and sets enviroment
variables with the username and password, and returns "OK" (I do the actual
authentication on a CGI script later). I put this on the .htaccess file:
AuthType Basic
AuthName "Name of the Authentcation
Hi..
I need apache to do this: always ask for authentication, accept any
username/password as valid, and set an enviroment variable with the
password, so I can retrieve it on a CGI script later. I wrote this code:
Perl
my $r = Apache-request;
my $username = $r-connection-user;
my($ret,
Hi.. this is very helpful.. thanks.. :-)
Now, I have one last question. Where do I put the "pachage Test::AuthAny" code?
At 09:24 13/06/2000 -0400, darren chamberlain wrote:
I need apache to do this: always ask for authentication, accept any
username/password as valid, and set an enviroment
valid-user
PerlAuthenHandler AuthAny
on the Location /auth part of the site, but it's not working.. I don't
get errors, and it doesn't accept the authentication (it authenticates
against /etc/shadow, like a normal protection).
Any idea?
Thanks! bye..
Ariel.
At 15:26 13/06/2000 -0400, darren chamberlain wr
The script is inside a password protected directory, so if I can access the
script, it means I sent a correct username and password (right?). The
"AUTHORIZATION" key inside %ENV doesn't exist.. There is a
$ENV{'AUTH_TYPE'}, it contains "basic".. I tested it on apache 1.3.6 and
1.3.3..
At 16:16