Apache::AuthDBIAuthentication and Authorization via Perl's DBI. | |
Download |
Apache::AuthDBI Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Philip M. Gollucci
- Publisher web site:
- http://search.cpan.org/~pgollucci/mod_perl-2.0.3/docs/api/ModPerl/MM.pod
Apache::AuthDBI Tags
Apache::AuthDBI Description
Authentication and Authorization via Perl's DBI. Apache::AuthDBI is a Perl module for authentication and authorization via Perl's DBI.SYNOPSIS # Configuration in httpd.conf or startup.pl: PerlModule Apache::AuthDBI # Authentication and Authorization in .htaccess: AuthName DBI AuthType Basic PerlAuthenHandler Apache::AuthDBI::authen PerlAuthzHandler Apache::AuthDBI::authz PerlSetVar Auth_DBI_data_source dbi:driver:dsn PerlSetVar Auth_DBI_username db_username PerlSetVar Auth_DBI_password db_password #DBI->connect($data_source, $username, $password) PerlSetVar Auth_DBI_pwd_table users PerlSetVar Auth_DBI_uid_field username PerlSetVar Auth_DBI_pwd_field password # authentication: SELECT pwd_field FROM pwd_table WHERE uid_field=$user PerlSetVar Auth_DBI_grp_field groupname # authorization: SELECT grp_field FROM pwd_table WHERE uid_field=$user require valid-user require user user_1 user_2 ... require group group_1 group_2 ...The AuthType is limited to Basic. You may use one or more valid require lines. For a single require line with the requirement 'valid-user' or with the requirements 'user user_1 user_2 ...' it is sufficient to use only the authentication handler. Requirements: · Perl
Apache::AuthDBI Related Software