Basic Authentication Using mod_perl + DBI
previous slidetable of contentsnext slide

<Directory /home/httpd/>
  PerlAuthenHandler Apache::AuthenDBI

  PerlSetVar Auth_DBI_data_source   dbi:Pg:dbname=webdb
  PerlSetVar Auth_DBI_username      httpd
  PerlSetVar Auth_DBI_password      secret_password

  PerlSetVar Auth_DBI_pwd_table     users
  PerlSetVar Auth_DBI_uid_field     username
  PerlSetVar Auth_DBI_pwd_field     password

  require valid-user
</Directory>