function simple_ldap_sso_ldap_delete_sid in Simple LDAP 7.2
Same name and namespace in other branches
- 7 simple_ldap_sso/simple_ldap_sso.inc \simple_ldap_sso_ldap_delete_sid()
Delete the session id from LDAP.
1 call to simple_ldap_sso_ldap_delete_sid()
- simple_ldap_sso_user_logout in simple_ldap_sso/
simple_ldap_sso.module - Implements hook_user_logout().
File
- simple_ldap_sso/
simple_ldap_sso.inc, line 361 - Simple LDAP SSO API functions.
Code
function simple_ldap_sso_ldap_delete_sid($name) {
$sso = SimpleLdapSSO::singleton($name);
try {
$sso
->deleteSid();
} catch (Exception $e) {
$message = 'Unable to delete sid from LDAP for user %name. Error: @e';
$t_args = array(
'%name' => $name,
'@e' => (string) $e,
);
watchdog(__FUNCTION__, $message, $t_args, WATCHDOG_WARNING);
}
}