summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-09-18 04:51:21 +0000
committerColin Smith <colin@pfsense.org>2005-09-18 04:51:21 +0000
commit728d393d94193bf47f8c8400a824719b647dae17 (patch)
tree5250fc71b33f096feac65aafb2b359c79518b659 /usr
parent00090b132c61747e7d91453a084ccbaaea3562eb (diff)
downloadpfsense-728d393d94193bf47f8c8400a824719b647dae17.zip
pfsense-728d393d94193bf47f8c8400a824719b647dae17.tar.gz
Require valid authorization to reload CARP interfaces.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/xmlrpc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php
index 0041c5d..f6d1a92 100755
--- a/usr/local/www/xmlrpc.php
+++ b/usr/local/www/xmlrpc.php
@@ -125,6 +125,8 @@ function get_notices_xmlrpc($raw_params) {
$carp_configure_doc = 'Basic XMLRPC wrapper for configuring carp interfaces.';
$carp_configure_sig = array(array($XML_RPC_Boolean, $XML_RPC_String));
function interfaces_carp_configure_xmlrpc($raw_params) {
+ $params = xmlrpc_params_to_php($raw_params);
+ if(!xmlrpc_auth($params)) return new XML_RPC_Response(new XML_RPC_Value("auth_failure", 'string'));
interfaces_carp_bringup();
interfaces_carp_configure();
return new XML_RPC_Response(new XML_RPC_Value(true, 'boolean'));
@@ -157,4 +159,4 @@ $server = new XML_RPC_Server(
'signature' => $get_notices_sig)
)
);
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud