diff options
author | Colin Smith <colin@pfsense.org> | 2005-09-18 04:51:21 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-09-18 04:51:21 +0000 |
commit | 728d393d94193bf47f8c8400a824719b647dae17 (patch) | |
tree | 5250fc71b33f096feac65aafb2b359c79518b659 | |
parent | 00090b132c61747e7d91453a084ccbaaea3562eb (diff) | |
download | pfsense-728d393d94193bf47f8c8400a824719b647dae17.zip pfsense-728d393d94193bf47f8c8400a824719b647dae17.tar.gz |
Require valid authorization to reload CARP interfaces.
-rwxr-xr-x | usr/local/www/xmlrpc.php | 4 |
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 +?> |