From 1d2043b89454eafa2e9836a2e7fa84dde0296208 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 13 Sep 2005 18:33:56 +0000 Subject: Use $config['system']['username'] for sync username --- etc/inc/filter.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') 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); -- cgit v1.1