function ldapauth_user_denied in LDAP integration 6
Allows other modules (like ldapgroups) to deny an ldap user access to the server.
Parameters
LDAPInterface $ldap Fully initialized LDAP server interface object:
String $name The ldap user name (from login form):
String $dn The DN for the authenticated user:
Object $account The local drupal account object or FALSE if none found.:
Return value
TRUE is user is to be denied access.
2 calls to ldapauth_user_denied()
- ldapauth_authenticate in ./
ldapauth.module - Main user authentication function. Called by form validator.
- _ldapsync_process_entry in ./
ldapsync.module - Take an ldap object entry and determine if there is an existing account or a new account needs to be created.
File
- includes/
ldap.core.inc, line 655 - The core functions that ldapauth supplies for submodules. Will be included by default by ldapauth.
Code
function ldapauth_user_denied($ldap, $name, $dn, $account) {
$denied = FALSE;
drupal_alter('ldap_user_deny', $denied, $ldap, $name, $dn, $account);
return $denied;
}