You are here

class ldap_authentication in Lightweight Directory Access Protocol (LDAP) 6

LDAP Authentication Class

This class is used to properly authenticate to an LDAP server.

Hierarchy

Expanded class hierarchy of ldap_authentication

3 string references to 'ldap_authentication'
ldap_authentication_install in ldap_authentication/ldap_authentication.install
Implementation of hook_install().
ldap_authentication_uninstall in ldap_authentication/ldap_authentication.install
Implementation of hook_uninstall().
_ldap_api_get_ldap_settings in ./ldap_api.admin.inc

File

includes/ldap.authentication.inc, line 14
Defines the authentication class and related functions.

View source
class ldap_authentication {

  /**
   * Constructor Method
   */
  function __construct() {
  }

  /**
   * Destructor Method
   */
  function __destruct() {
  }

  /**
   * Invoke Method
   */
  function __invoke() {
  }

  /**
   * Error Handling Method
   *
   * @param int errno
   *   The level of the error raised.
   *
   * @param string errstr
   *   The error message.
   *
   * @param string errfile
   *   The filename that the error was raised in.
   *
   * @param int errline
   *   The line number the error was raised at.
   *
   * @param array errcontext
   *   An array of every variable that existed in the scope the error was
   *   triggered in.
   *
   * @return bool
   *   Always return TRUE to avoid PHP's builtin handler.
   */
  function error_handler($errno, $errstr, $errfile, $errline, $errcontext) {
    return TRUE;
  }

  /**
   * Perform LDAP authentication
   *
   * @parm
   * @return boolean
   * TRUE if authentication succeeds, FALSE otherwise.
   */
  function authenticate($user, $pass) {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ldap_authentication::authenticate function Perform LDAP authentication
ldap_authentication::error_handler function Error Handling Method
ldap_authentication::__construct function Constructor Method
ldap_authentication::__destruct function Destructor Method
ldap_authentication::__invoke function Invoke Method