NAME

CGI::WeT::User - User database interface for CGI::WeT

SYNOPSIS

use CGI::WeT::User ();

DESCRIPTION

This module provides the CGI::WeT package with access to the user database used for authentication. This allows other scripts and modules to interact with user information when pages have been authenticated.

To make full use of this module, one of the various CGI::WeT::User::DBI::* modules must be compiled also. (Here CGI::WeT::User::DBI is not a reference to the more well known DBI:: package though work is progressing on CGI::WeT::User::DBI::DBI.)

CGI::WeT::User will query each available module under CGI::WeT::User::DBI:: in turn until one returns a defined reference. To only use a particular database when several might be available, use the

PerlSetVar WeT_UserDB <DBI Module>

configuration directive. This will cause CGI::WeT::User to only query the CGI::WeT::User::DBI::<DBI Module> module.

See the documentation for the particular database interface being used for more requirements or configuration directives.

To retrieve information on a user, use the following call:

$user = new CGI::WeT::User ($engine, 'username' => $ENV{'REMOTE_USER'});

where $engine is the CGI::WeT::Engine object being used to render the page.