/**
* 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);
}