summaryrefslogtreecommitdiffstats
path: root/etc/inc/xmlrpc.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-05-02 20:42:02 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-05-02 20:42:02 +0000
commit01ee027855a8c0f5bba524fa2967cea3a394d8a0 (patch)
tree40dafadccf467594f08b57516058459b21501cca /etc/inc/xmlrpc.inc
parent221c77a6c87f7f89940e0a9b84e4013a2fbc7998 (diff)
downloadpfsense-01ee027855a8c0f5bba524fa2967cea3a394d8a0.zip
pfsense-01ee027855a8c0f5bba524fa2967cea3a394d8a0.tar.gz
Log bad XMLRPC login attempts on target sync node.
Diffstat (limited to 'etc/inc/xmlrpc.inc')
-rw-r--r--etc/inc/xmlrpc.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/etc/inc/xmlrpc.inc b/etc/inc/xmlrpc.inc
index 3de9b91..74fa712 100644
--- a/etc/inc/xmlrpc.inc
+++ b/etc/inc/xmlrpc.inc
@@ -102,16 +102,16 @@ function php_value_to_xmlrpc($value, $force_array = false) {
* the array before returning it.
*/
function xmlrpc_auth(&$params) {
- global $config;
+ global $config;
$localpass = $config['system']['password'];
- if(crypt($params[0], $localpass) == $localpass) {
- array_shift($params);
+ if(crypt($params[0], $localpass) == $localpass) {
+ array_shift($params);
return true;
- } else if(crypt($params['xmlrpcauth'], $localpass) != $localpass) {
+ } else if(crypt($params['xmlrpcauth'], $localpass) != $localpass) {
+ log_error("An error occured while syncing the XML configuration. Invalid password.");
unset($params['xmlrpcauth']);
- return true;
+ return false;
}
- return false;
}
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud