That makes sense. I can't use mod_auth because I can't set Require. I'm using Basic authentication and text based password files. Unfortunately, I can't find an Apache::Auth* module that handles basic authentication against text files. Did I miss it somewhere?
Thanks. -Todd On Mon, 20 May 2002, Geoffrey Young wrote: > > > > Does the cookbook have a code sample of checking the password for > > basic authentication? > > > well, not via .htpasswd files, no. in general, it doesn't make much sense to use >mod_perl > to duplicate the same things that Apache already does for you, since the Apache code >is > faster, has had more eyeballs looking at it for longer, etc. in that sense you >wouldn't > want to write your own routine to just check a flat file. where mod_perl really >shines > wrt authentication is with all the other things Perl does well, such as using DBI to > authenticate against a database, or working with other schemes like SMB or Radius - >see > the 25+ Apache::Auth* modules on CPAN for just about anything you could think of. > > however, we do describe how to use the mod_perl API to interact with Apache the same >way > mod_auth does using $r->get_basic_auth_pw() and $r->not_basic_auth_failure() in a >few > different ways. you will also find those two methods in the eagle book if you have >it. > > make sense? > > --Geoff > > >