summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.auth-user.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-11-14 19:32:34 +0000
committerErmal <eri@pfsense.org>2012-11-14 19:32:34 +0000
commit3260b82f3638f2a80330b7087020424fed7fbe7e (patch)
tree64071b0b1aaf6aaff139d54f36dfafa32e807cff /etc/inc/openvpn.auth-user.php
parent52c9f9faafec960a9016fd9b41f32660beff61a2 (diff)
downloadpfsense-3260b82f3638f2a80330b7087020424fed7fbe7e.zip
pfsense-3260b82f3638f2a80330b7087020424fed7fbe7e.tar.gz
Make it more clear what is the username during syslog
Diffstat (limited to 'etc/inc/openvpn.auth-user.php')
-rwxr-xr-xetc/inc/openvpn.auth-user.php4
1 files changed, 2 insertions, 2 deletions
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);
OpenPOWER on IntegriCloud