You are here

public function SimpleLdapSSO::deleteSid in Simple LDAP 7

Same name and namespace in other branches
  1. 7.2 simple_ldap_sso/SimpleLdapSSO.class.php \SimpleLdapSSO::deleteSid()

Delete the sid from LDAP.

File

simple_ldap_sso/SimpleLdapSSO.class.php, line 117
SimpleLdapSSO object.

Class

SimpleLdapSSO
@file SimpleLdapSSO object.

Code

public function deleteSid() {
  $attributes[$this
    ->getSidAttribute()] = array();
  if (!$this->server
    ->modify($this->dn, $attributes, 'delete')) {
    throw new Exception('Unable to delete session id from LDAP.');
  }
  $this->hashedSid = NULL;
}