summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfSense.org>2010-01-09 15:11:21 -0500
committerScott Ullrich <sullrich@pfSense.org>2010-01-09 15:11:21 -0500
commit6798004b82efc9cda46371310336041a2c3ff495 (patch)
tree3e25008463cd972747fce12d4ba4dfef775ce275
parent972d8ad3a27b6d1955d0dd2521c71736d9f9ee32 (diff)
downloadpfsense-6798004b82efc9cda46371310336041a2c3ff495.zip
pfsense-6798004b82efc9cda46371310336041a2c3ff495.tar.gz
Report auth errors correctly during xmlrpc sync
-rw-r--r--etc/inc/filter.inc6
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++;
}
}
OpenPOWER on IntegriCloud