You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jerrad Pierce <Je...@networkengines.com> on 2000/06/12 22:00:32 UTC

RE: Help writting a module for Apache.

Apache::Authen?

As for your method, 401 username password stuff is always accessible via:
$ENV{AUTHORIZATION}

  o _
 /|/ |           Jerrad Pierce             \ | __|_ _|
 /||/           http://pthbb.org          .  | _|   |
 \||          _.-~-._.-~-._.-~-._@"      _|\_|___|___|


> -----Original Message-----
> From: Ariel Manzur [mailto:hlife@freeweb.com.ar]
> Sent: Monday, May 29, 2000 09:09
> To: modperl@apache.org
> Subject: Help writting a module for Apache.
> 
> 
> 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.
>