NAME

Net::Server::Framework::Auth - authentication for Net::Server::Framework based daemons

VERSION

This documentation refers to Net::Server::Framework::Auth version 1.0.

SYNOPSIS

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
}

DESCRIPTION

This is a lib that is used to authenticate clients connecting to the daemon.

BASIC METHODS

authenticate

This function authenticates a user against a stored password hash.

make_pass

This function creates a password hash secure enough to store it in a database.

COMMANDS

The commands accepted by the lib are:

client

server

userpass

CONFIGURATION AND ENVIRONMENT

The library needs a working etc/db.conf file and a configured $DB variable.

BUGS AND LIMITATIONS

There are no known bugs in this module. Please report problems to Lenz Gschwendtner ( <lenz@springtimesoft.com> ) Patches are welcome.

AUTHOR

Lenz Gschwendtner ( <lenz@springtimesoft.com> )

LICENCE AND COPYRIGHT

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.