Scott T. Hardin > Connector-1.04 > Connector::Builtin::Authentication::Password

Download:
Connector-1.04.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source   Latest Release: Connector-1.05

Connector::Builtin::Authentication::Password

Lightweight connector to check passwords against a unix style password file. Path to the password file is taken from LOCATION.

Usage

The username is the first component of the path, the password needs to be passed in the extended parameters using the key password.

Example:

   $connector->get('username', {  password => 'mySecret' } );

Return values

1 if the password matches, 0 if the user is found but the password does not match and undef if the user is not found.

The connector will die if the password file is not readable or if one of the parameters is missing.

Limitations

Usernames are limited to [a-zA-Z0-9_\-\.], invalid names are treated as not found.

syntax highlighting: