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


Net-Server-Framework documentation  | view source Contained in the Net-Server-Framework distribution.

Index


NAME

Top

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

VERSION

Top

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

SYNOPSIS

Top

The Authentication part of the 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
    }




DESCRIPTION

Top

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

BASIC METHODS

Top

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

Top

The commands accepted by the lib are:

client

server

userpass

CONFIGURATION AND ENVIRONMENT

Top

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

BUGS AND LIMITATIONS

Top

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

AUTHOR

Top

Lenz Gschwendtner ( <lenz@springtimesoft.com> )

LICENCE AND COPYRIGHT

Top


Net-Server-Framework documentation  | view source Contained in the Net-Server-Framework distribution.