⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.50
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-horde
/
passwd
/
lib
/
Driver
/
Edit File: Soap.php
<?php /** * Copyright 2009-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file COPYING for license information (GPL). If you * did not receive this file, see http://www.horde.org/licenses/gpl. * * @category Horde * @copyright 2009-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package Passwd */ /** * Changes a password through a SOAP request. * * @author Jan Schneider <jan@horde.org> * @category Horde * @copyright 2009-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package Passwd */ class Passwd_Driver_Soap extends Passwd_Driver { /** */ public function __construct(array $params = array()) { if (!class_exists('SoapClient')) { throw new Passwd_Exception('You need the soap PHP extension to use this driver.'); } if (empty($params['wsdl']) && (empty($params['soap_params']['location']) || empty($params['soap_params']['uri']))) { throw new Passwd_Exception('Either the "wsdl" or the "location" and "uri" parameter must be provided.'); } if (isset($params['wsdl'])) { unset($params['soap_params']['location']); unset($params['soap_params']['uri']); } $params['soap_params']['exceptions'] = false; parent::__construct($params); } /** */ protected function _changePassword($user, $oldpass, $newpass) { $args = array(); if (($pos = array_search('username', $this->_params['arguments'])) !== false) { $args[$pos] = $user; } if (($pos = array_search('oldpassword', $this->_params['arguments'])) !== false) { $args[$pos] = $oldpass; } if (($pos = array_search('newpassword', $this->_params['arguments'])) !== false) { $args[$pos] = $newpass; } $client = new SoapClient( $this->_params['wsdl'], $this->_params['soap_params'] ); $res = $client->__soapCall($this->_params['method'], $args); if ($res instanceof SoapFault) { throw new Passwd_Exception($res->getMessage(), $res->getCode()); } } }
Simpan