summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.filter_synchronize
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-08-18 16:39:06 -0300
committerRenato Botelho <renato@netgate.com>2016-08-18 16:42:20 -0300
commit2355a762c90af3863ac1669ada81a1ad25981709 (patch)
tree20da99542dd2a33f7a84c004885fdb4ea92119ae /src/etc/rc.filter_synchronize
parentf81e7cc404bc3ede065c8c6315fdb5d26b2cfc5b (diff)
downloadpfsense-2355a762c90af3863ac1669ada81a1ad25981709.zip
pfsense-2355a762c90af3863ac1669ada81a1ad25981709.tar.gz
Ticket #3734: Pass username on all xmlrpc calls
Diffstat (limited to 'src/etc/rc.filter_synchronize')
-rwxr-xr-xsrc/etc/rc.filter_synchronize6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/etc/rc.filter_synchronize b/src/etc/rc.filter_synchronize
index c8e47f8..88bebab 100755
--- a/src/etc/rc.filter_synchronize
+++ b/src/etc/rc.filter_synchronize
@@ -111,7 +111,7 @@ function carp_check_version($url, $username, $password, $method = 'host_firmware
}
try {
- $resp = $cli->$method($password);
+ $resp = $cli->$method($username, $password);
} catch (XML_RPC2_FaultException $e) {
// The XMLRPC server returns a XMLRPC error
$error = 'Exception calling XMLRPC method ' . $method . ' #' . $e->getFaultCode() . ' : ' . $e->getFaultString();
@@ -268,7 +268,7 @@ function carp_sync_xml($url, $username, $password, $sections, $method = 'restore
}
try {
- $resp = $cli->$method($password, $xml);
+ $resp = $cli->$method($username, $password, $xml);
} catch (XML_RPC2_FaultException $e) {
// The XMLRPC server returns a XMLRPC error
$error = 'Exception calling XMLRPC method ' . $method . '#' . $e->getFaultCode() . ' : ' . $e->getFaultString();
@@ -481,7 +481,7 @@ if (is_array($config['hasync'])) {
file_notice("sync_settings", $error, "Settings Sync", "");
} else {
try {
- $resp = $cli->filter_configure($hasync['password']);
+ $resp = $cli->filter_configure($username, $hasync['password']);
} catch (XML_RPC2_FaultException $e) {
// The XMLRPC server returns a XMLRPC error
$error = 'Exception calling XMLRPC method filter_configure #' . $e->getFaultCode() . ' : ' . $e->getFaultString();
OpenPOWER on IntegriCloud