⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.78
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-pear
/
pear
/
php
/
Horde
/
Core
/
Auth
/
Edit File: Imsp.php
<?php /** * Copyright 2004-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file COPYING for license information (LGPL). If you did * not receive this file, see http://opensource.org/licenses/lgpl-2.1.php * * @category Horde * @copyright 2004-2017 Horde LLC * @license http://opensource.org/licenses/lgpl-2.1.php LGPL * @package Core */ /** * This class provides basic authentication against an IMSP server. * * @author Michael J Rubinsky <mrubinsk@horde.org> * @category Horde * @copyright 2004-2017 Horde LLC * @license http://opensource.org/licenses/lgpl-2.1.php LGPL * @package Core */ class Horde_Core_Auth_Imsp extends Horde_Auth_Base { /** * * @var Horde_Imsp_Client_Base */ protected $_imsp; /** * Private authentication function. * * @param string $userID Username for IMSP server. * @param array $credentials Hash containing 'password' element. * * @return boolean True on success / False on failure. */ protected function _authenticate($userID, $credentials) { // Need to create the Imsp socket here since it requires a user/password // to create, and we don't have one until this method. $this->_params['username'] = $userID; $this->_params['password'] = $credentials['password']; $this->_imsp = $GLOBALS['injector']->getInstance('Horde_Core_Factory_Imsp')->create(null, $this->_params); if (!$this->_imsp->authenticate(false)) { throw new Horde_Auth_Exception('', Horde_Auth::REASON_BADLOGIN); } } }
Simpan