Apache::Authen::Generic

A generic authentication handler for the Apache webserver
Download

Apache::Authen::Generic Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Don Owens
  • Publisher web site:
  • http://search.cpan.org/~dowens/

Apache::Authen::Generic Tags


Apache::Authen::Generic Description

A generic authentication handler for the Apache webserver Apache::Authen::Generic is a generic authentication handler for the Apache webserver (under mod_perl).SYNOPSIS # httpd.conf PerlModule Apache::Authen::Generic < Location /cgi-bin/secure > AuthType Basic AuthName "Test Login" PerlAuthenHandler Apache::Authen::Generic->authenticate require valid-user PerlSetVar generic_auth_cipher_key abcdefghijklmnopqrstuvwxyz012345 PerlSetVar generic_auth_failed_url "/cgi-bin/login/login_form.cgi" PerlSetVar generic_auth_allow_url "^/cgi-bin/login" PerlSetVar generic_auth_cookie_name test_cookie PerlSetVar generic_auth_ref_url_var ref_url PerlSetVar generic_auth_set_cookie_env 1 < /Location > # cgi script use Apache::Authen::Generic; my $auth_obj = Apache::Authen::Generic->new; if (&check_login($user, $pwd)) { my $cookie = $auth_obj->($data, $key); print "Set-Cookie: $cookie "; print "Location: $redirect_url "; print " "; } else { &handle_invalid_password() } # Efforts have been made to make this module work under Apache # 1.3.* and mod_perl 1.0, but it has only been tested under # Apache 2.0.* and mod_perl 2.0. Requirements: · Perl


Apache::Authen::Generic Related Software