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 12/06/2000 -0400, Jerrad Pierce wrote:
Then you haven't gotten a username and password back, you should get
basic authinfo
Where authinfo is a b64 encoded string that is
username:password
Are you sure? I tryed $ENV{AUTHORIZATION} in normal cgi scripts and in
Apache::Registry and the variable is empty..
How do I use that module?
At 16:00 12/06/2000 -0400, Jerrad Pierce wrote:
Apache::Authen?
As for your method, 401 username password stuff is always
accessible via:
$ENV{AUTHORIZATION}
Hi..
I need Apache to do this: always ask for basic
authentication, and then
accept any conbination of username/password as correct, and set an
enviroment variable with the password sent on the request, so I can
retrieve that on a CGI script, and do the real
authentication there.
I couldn't find a way to do that with the 'standard' apache
modules, so I
have to write one, and I have some questions:
- is that any module that alredy does that? :)
- Can anyone point me to a "real life" example, or guide, on
how to write
and install a module using mod_perl? I use perl a lot, but I
could find
"easy" documentation on how to write modules (I don't want to
read a _huge_
man page for this simple task)
Can anyone help? Thanks!!
Bye..
Ariel.