You are here

public static function SimpleLdapSSO::singleton in Simple LDAP 7

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

Return a SimpleLdapSSO object for the given username.

3 calls to SimpleLdapSSO::singleton()
simple_ldap_sso_ldap_delete_sid in simple_ldap_sso/simple_ldap_sso.inc
Delete the session id from LDAP.
simple_ldap_sso_ldap_save_sid in simple_ldap_sso/simple_ldap_sso.inc
Save the session id to LDAP.
simple_ldap_sso_validate_ldap in simple_ldap_sso/simple_ldap_sso.inc
Validate the SSO data matches what we have in LDAP.

File

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

Class

SimpleLdapSSO
@file SimpleLdapSSO object.

Code

public static function singleton($name) {
  if (!isset(self::$users[$name])) {
    self::$users[$name] = new SimpleLdapSSO($name);
  }
  return self::$users[$name];
}