You are here

private function SimpleLdapSSO::hashSid in Simple LDAP 7

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

Hash an sid, using the current hashing method.

This method is intentionally private.

2 calls to SimpleLdapSSO::hashSid()
SimpleLdapSSO::saveSid in simple_ldap_sso/SimpleLdapSSO.class.php
Save a plain text sid to LDAP, hashing first.
SimpleLdapSSO::validateSid in simple_ldap_sso/SimpleLdapSSO.class.php
Validate an sid against the stored value on LDAP.

File

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

Class

SimpleLdapSSO
@file SimpleLdapSSO object.

Code

private function hashSid($sid) {
  $algorithm = variable_get('simple_ldap_sso_hashing_algorithm', 'sha');
  return SimpleLdap::hash($sid, $algorithm);
}