diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-13 18:33:56 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-13 18:33:56 +0000 |
commit | 1d2043b89454eafa2e9836a2e7fa84dde0296208 (patch) | |
tree | 9e4e37c7b8818407cdf5d2108c7c8480673f9067 /etc | |
parent | a921dafaa19c77c2faf5b9c3aa52dd32f560b41b (diff) | |
download | pfsense-1d2043b89454eafa2e9836a2e7fa84dde0296208.zip pfsense-1d2043b89454eafa2e9836a2e7fa84dde0296208.tar.gz |
Use $config['system']['username'] for sync username
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index fd06560..58df881 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -2345,7 +2345,7 @@ function carp_sync_xml($url, $password, $section, $section_xml, $method = 'pfsen $msg = new XML_RPC_Message($method, $params); log_error("begin synchronize XML configuration data to $url on port $port"); $cli = new XML_RPC_Client('/xmlrpc.php', $url, $port); - $cli->setCredentials('admin', $password); + $cli->setCredentials($config['system']['username'], $password); $resp = $cli->send($msg); if(!$resp) { log_error("A communication error occured while syncing configuration data with {$url}:{$port} - " . $cli->errstr); |