An LDAP authenticator. Use Mozilla::LDAP.
$auth = new CGI::Session::Authenticator( -host => $host, -port => $port, -bind => 'uid=$username,ou=People,dc=mycorp,dc=com' );
if ( $auth->authenticated( $param ) ) { ...success... } else { ...failure... }
It accepts on argument which is a reference to a hash. This hash contains variables which are used to attempt authentication.
The standard values which are used for comparison. The basic ones are '-username' and '-password'.
It returns a true value if the user was successfully authenticated, and a false value if the user was not successfully authenticated.
1 POD Error
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
=over without closing =back
To install CGI::Session, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Session
CPAN shell
perl -MCPAN -e shell install CGI::Session
For more information on module installation, please visit the detailed CPAN module installation guide.