diff options
author | Scott Ullrich <sullrich@pfSense.org> | 2010-01-09 15:11:21 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfSense.org> | 2010-01-09 15:11:21 -0500 |
commit | 6798004b82efc9cda46371310336041a2c3ff495 (patch) | |
tree | 3e25008463cd972747fce12d4ba4dfef775ce275 | |
parent | 972d8ad3a27b6d1955d0dd2521c71736d9f9ee32 (diff) | |
download | pfsense-6798004b82efc9cda46371310336041a2c3ff495.zip pfsense-6798004b82efc9cda46371310336041a2c3ff495.tar.gz |
Report auth errors correctly during xmlrpc sync
-rw-r--r-- | etc/inc/filter.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 8cc9635..64d89b0 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -3229,6 +3229,12 @@ function carp_sync_xml($url, $password, $sections, $port = 80, $method = 'pfsens log_error("XMLRPC sync successfully completed with {$url}:{$port}."); $numberofruns = 3; } + $parsed_response = XML_RPC_Decode($resp->value()); + if(trim($parsed_response) == "Authentication failed") { + $error = "A authentication failure occurred while trying to access {$url}:{$port} (pfsense.exec_php)."; + log_error($error); + $numberofruns = 5; + } $numberofruns++; } } |