removeUser() public method

Remove a set of authentication credentials.
public removeUser ( string $userId, string $dn = null )
$userId string The userId to add.
$dn string TODO
示例#1
0
文件: Ldap.php 项目: jubinpatel/horde
 /**
  * Delete a set of authentication credentials.
  *
  * @param string $userId  The user ID to delete.
  * @param string $dn      NOT USED.
  *
  * @throws Horde_Auth_Exception
  */
 public function removeUser($userId, $dn = null)
 {
     list($userId, $credentials) = $GLOBALS['injector']->getInstance('Horde_Core_Factory_Auth')->create()->runHook($userId, array(), 'preauthenticate', 'admin');
     parent::removeUser($userId, isset($credentials['ldap']) ? $credentials['ldap']['dn'] : null);
 }