Can't get 'PerlAuthenHandler' to work.

2000-10-10 Thread Ariel Manzur
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

Where do I put my code?

2000-06-13 Thread Ariel Manzur
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,

Re: Where do I put my code?

2000-06-13 Thread Ariel Manzur
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

Re: Where do I put my code?

2000-06-13 Thread Ariel Manzur
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

RE: Help writting a module for Apache.

2000-06-12 Thread Ariel Manzur
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