Net::Server::Framework::Auth - authentication for Net::Server::Framework based daemons
This documentation refers to Net::Server::Framework::Auth version 1.0.
Net::Server::Framework::Auth
The Authentication part of the Net::Server::Framework
Net::Server::Framework
A typical invocation looks like this:
if ( !defined ($error = Net::Server::Framework::Auth::authenticate( $c->{user}, $c->{pass}, 'userpass' ))) { # this is authenticated } else { # throw an error }
This is a lib that is used to authenticate clients connecting to the daemon.
This function authenticates a user against a stored password hash.
This function creates a password hash secure enough to store it in a database.
The commands accepted by the lib are:
The library needs a working etc/db.conf file and a configured $DB variable.
There are no known bugs in this module. Please report problems to Lenz Gschwendtner ( <lenz@springtimesoft.com> ) Patches are welcome.
Lenz Gschwendtner ( <lenz@springtimesoft.com> )
Copyright (c) 2007 Lenz Gschwerndtner ( <lenz@springtimesoft.comn> ) All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Net::Server::Framework, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Server::Framework
CPAN shell
perl -MCPAN -e shell install Net::Server::Framework
For more information on module installation, please visit the detailed CPAN module installation guide.