public function SimpleLdapSSO::saveSid in Simple LDAP 7.2
Same name and namespace in other branches
- 7 simple_ldap_sso/SimpleLdapSSO.class.php \SimpleLdapSSO::saveSid()
Save a plain text sid to LDAP, hashing first.
File
- simple_ldap_sso/
SimpleLdapSSO.class.php, line 106 - SimpleLdapSSO object.
Class
- SimpleLdapSSO
- @file SimpleLdapSSO object.
Code
public function saveSid($sid) {
$hashed = $this
->hashSid($sid);
$attributes[$this
->getSidAttribute()] = $hashed;
if (!$this->server
->modify($this->dn, $attributes, 'replace')) {
throw new Exception('Unable to save session id to LDAP.');
}
}