/**
* Attempts to login to IMSP server.
*
* @param Horde_Imsp_Client_Base $client The Imsp client connection.
* @param boolean $login Remain logged in after auth?
*
* @return boolean
*/
public function authenticate(Horde_Imsp_Client_Base $client, $login = true)
{
$this->_imsp = $client;
if (!$this->_authenticate()) {
return false;
}
if (!$login) {
$this->_imsp->logout();
}
return true;
}