diff options
author | Ermal <eri@pfsense.org> | 2012-11-14 19:32:34 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-11-14 19:32:34 +0000 |
commit | 3260b82f3638f2a80330b7087020424fed7fbe7e (patch) | |
tree | 64071b0b1aaf6aaff139d54f36dfafa32e807cff | |
parent | 52c9f9faafec960a9016fd9b41f32660beff61a2 (diff) | |
download | pfsense-3260b82f3638f2a80330b7087020424fed7fbe7e.zip pfsense-3260b82f3638f2a80330b7087020424fed7fbe7e.tar.gz |
Make it more clear what is the username during syslog
-rwxr-xr-x | etc/inc/ipsec.auth-user.php | 4 | ||||
-rwxr-xr-x | etc/inc/openvpn.auth-user.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/ipsec.auth-user.php b/etc/inc/ipsec.auth-user.php index 9c51bf4..273abaf 100755 --- a/etc/inc/ipsec.auth-user.php +++ b/etc/inc/ipsec.auth-user.php @@ -120,14 +120,14 @@ foreach ($authmodes as $authmode) { } if ($authenticated == false) { - syslog(LOG_WARNING, "user {$username} could not authenticate.\n"); + syslog(LOG_WARNING, "user '{$username}' could not authenticate.\n"); exit(-1); } if (file_exists("/etc/inc/ipsec.attributes.php")) include_once("/etc/inc/ipsec.attributes.php"); -syslog(LOG_NOTICE, "user {$username} authenticated\n"); +syslog(LOG_NOTICE, "user '{$username}' authenticated\n"); exit(0); diff --git a/etc/inc/openvpn.auth-user.php b/etc/inc/openvpn.auth-user.php index 92c3b87..2ddadca 100755 --- a/etc/inc/openvpn.auth-user.php +++ b/etc/inc/openvpn.auth-user.php @@ -120,7 +120,7 @@ foreach ($authmodes as $authmode) { } if ($authenticated == false) { - syslog(LOG_WARNING, "user {$username} could not authenticate.\n"); + syslog(LOG_WARNING, "user '{$username}' could not authenticate.\n"); exit(-1); } @@ -154,7 +154,7 @@ if (isset($attributes['framed_ip'])) { if (!empty($content)) @file_put_contents("{$g['tmp_path']}/{$username}", $content); -syslog(LOG_NOTICE, "user {$username} authenticated\n"); +syslog(LOG_NOTICE, "user '{$username}' authenticated\n"); exit(0); |