LedgerSMB::Auth::DB






LedgerSMB::Auth::DB − Standard Authentication DB module.

This is the standard DB‐based module for authentication.
Uses HTTP basic authentication.



session_check
    Checks to see if a session exists based on current
    logged in credentials.

    Handles failure by creating a new session, since
    credentials are now separate.

session_create
    Creates a new session, sets $lsmb−>{session_id} to that
    session, sets cookies, etc.

session_destry
    Destroys a session and removes it from the db.

get_credentials
    Gets credentials from the ’HTTP_AUTHORIZATION’
    environment variable which must be passed in as per the
    standards of HTTP basic authentication.

    Returns a hashref with the keys of login and password.

credential_prompt
    Sends a 401 error to the browser popping up browser
    credential prompt.

# Small Medium Business Accounting software #
http://www.ledgersmb.org/ # # # Copyright (C) 2006−2011 #
This work contains copyrighted information from a number of
sources all used # with permission.  It is released under
the GNU General Public License # Version 2 or, at your
option, any later version.  See COPYRIGHT file for #
details.