You are here

function ldapauth_debug_msg in LDAP integration 6

Utility function to allow for debug tracing message to be logged so that admins can get more information about config/connection problems.

Parameters

String $message Preferably a pre-translated message but can be: a message with substitutions.

Array $variables Should be NULL or missing if message translated.: Substitution array if not.

See also

watchdog

3 calls to ldapauth_debug_msg()
ldapauth_authenticate in ./ldapauth.module
Main user authentication function. Called by form validator.
ldapgroups_ldap_user_deny_alter in ./ldapgroups.module
Implementation of hook_ldap_user_deny_alter.
_ldapauth_auth in ./ldapauth.module
Authenticate the user against LDAP servers.

File

includes/ldap.core.inc, line 670
The core functions that ldapauth supplies for submodules. Will be included by default by ldapauth.

Code

function ldapauth_debug_msg($message, $variables = NULL) {
  global $_ldapauth_debug;
  if (!isset($_ldapauth_debug)) {
    $_ldapauth_debug = variable_get("ldapauth_debug", FALSE);
  }
  if ($_ldapauth_debug) {
    watchdog('ldapauth', $message, $variables, WATCHDOG_DEBUG);
  }
}