summaryrefslogtreecommitdiffstats
path: root/etc/inc/xmlrpc.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-12-10 22:51:44 +0000
committerErmal <eri@pfsense.org>2010-12-10 22:51:44 +0000
commitca092d2673990d0d28a20085823d3b2f930d4ce6 (patch)
tree6507a6103de6d6835cc983874f82993728e4d228 /etc/inc/xmlrpc.inc
parent37d202a3bd354e553b63ab9b265bd68dafef7fc5 (diff)
downloadpfsense-ca092d2673990d0d28a20085823d3b2f930d4ce6.zip
pfsense-ca092d2673990d0d28a20085823d3b2f930d4ce6.tar.gz
Correct error messages.
Diffstat (limited to 'etc/inc/xmlrpc.inc')
-rw-r--r--etc/inc/xmlrpc.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/xmlrpc.inc b/etc/inc/xmlrpc.inc
index c1e29a8..ef4fc19 100644
--- a/etc/inc/xmlrpc.inc
+++ b/etc/inc/xmlrpc.inc
@@ -107,18 +107,18 @@ function php_value_to_xmlrpc($value, $force_array = false) {
* the array before returning it.
*/
function xmlrpc_auth(&$params) {
- global $config;
+ global $config, $_SERVER;
if (!is_array($config['system']['user'])) {
array_shift($params);
unset($params['xmlrpcauth']);
- log_error("webConfigurator authentication error for 'admin' during sync settings.");
+ log_error("webConfigurator authentication error for 'admin' from {$_SERVER['REMOTE_ADDR']} during sync settings.");
return false;
}
if (!isset($config['system']['user'][0]['password'])) {
array_shift($params);
unset($params['xmlrpcauth']);
- log_error("webConfigurator authentication error for 'admin' during sync settings.");
+ log_error("webConfigurator authentication error for 'admin' from {$_SERVER['REMOTE_ADDR']} during sync settings.");
return false;
}
@@ -135,7 +135,7 @@ function xmlrpc_auth(&$params) {
array_shift($params);
unset($params['xmlrpcauth']);
- log_error("webConfigurator authentication error for 'admin' during sync settings.");
+ log_error("webConfigurator authentication error for 'admin' from {$_SERVER['REMOTE_ADDR']} during sync settings.");
return false;
}
OpenPOWER on IntegriCloud