⚝
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
/
View File Name :
Ldap.php
* @category Horde * @license http://opensource.org/licenses/lgpl-2.1.php LGPL * @package Core */ class Horde_Core_Auth_Ldap extends Horde_Auth_Ldap { /** * Add a set of authentication credentials. * * @param string $userId The user ID to add. * @param array $credentials The credentials to use. * * @throws Horde_Auth_Exception */ public function addUser($userId, $credentials) { list($userId, $credentials) = $GLOBALS['injector']->getInstance('Horde_Core_Factory_Auth')->create()->runHook($userId, $credentials, 'preauthenticate', 'admin'); parent::addUser($userId, $credentials); } /** * Update a set of authentication credentials. * * @param string $oldID The old user ID. * @param string $newID The new user ID. * @param array $credentials The new credentials * @param string $olddn NOT USED. * @param string $newdn NOT USED. * * @throws Horde_Auth_Exception */ public function updateUser($oldID, $newID, $credentials, $olddn = null, $newdn = null) { $auth = $GLOBALS['injector']->getInstance('Horde_Core_Factory_Auth')->create(); list($oldID, $old_credentials) = $auth->runHook($oldID, $credentials, 'preauthenticate', 'admin'); list($newID, $new_credentials) = $auth->runHook($newID, $credentials, 'preauthenticate', 'admin'); $olddn = isset($old_credentials['dn']) ? $old_credentials['dn'] : null; $newdn = isset($new_credentials['dn']) ? $new_credentials['dn'] : null; parent::updateUser($oldID, $newID, $new_credentials, $olddn, $newdn); } /** * 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); } }