diff --git a/src/etc/inc/ipsec.auth-user.php b/src/etc/inc/ipsec.auth-user.php index 73902855be..71ed2b6bcb 100755 --- a/src/etc/inc/ipsec.auth-user.php +++ b/src/etc/inc/ipsec.auth-user.php @@ -66,7 +66,7 @@ if (!$username || !$password) { $authenticated = false; if (($strictusercn === true) && ($common_name != $username)) { - syslog(LOG_WARNING, "Username does not match certificate common name ({$username} != {$common_name}), access denied.\n"); + syslog(LOG_WARNING, "Username does not match certificate common name ({$username} != {$common_name}), access denied."); if (isset($_GET['username'])) { echo "FAILED"; closelog(); @@ -90,7 +90,7 @@ foreach ($authmodes as $authmode) { $user = getUserEntry($username); if (!is_array($user) || !userHasPrivilege($user, "user-ipsec-xauth-dialin")) { $authenticated = false; - syslog(LOG_WARNING, "user '{$username}' cannot authenticate through IPsec since the required privileges are missing.\n"); + syslog(LOG_WARNING, "user '{$username}' cannot authenticate through IPsec since the required privileges are missing."); continue; } } @@ -99,7 +99,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."); if (isset($_GET['username'])) { echo "FAILED"; closelog(); @@ -114,7 +114,7 @@ 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"); closelog(); if (isset($_GET['username'])) { diff --git a/src/etc/inc/openvpn.auth-user.php b/src/etc/inc/openvpn.auth-user.php index f9852b6045..6bb059a458 100644 --- a/src/etc/inc/openvpn.auth-user.php +++ b/src/etc/inc/openvpn.auth-user.php @@ -76,7 +76,7 @@ if (file_exists("{$g['varetc_path']}/openvpn/{$modeid}.ca")) { $authenticated = false; if (($strictusercn === true) && (mb_strtolower($common_name) !== mb_strtolower($username))) { - syslog(LOG_WARNING, "Username does not match certificate common name (\"{$username}\" != \"{$common_name}\"), access denied.\n"); + syslog(LOG_WARNING, "Username does not match certificate common name (\"{$username}\" != \"{$common_name}\"), access denied."); if (isset($_GET['username'])) { echo "FAILED"; closelog(); @@ -118,7 +118,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."); if (isset($_GET['username'])) { echo "FAILED"; closelog(); @@ -161,7 +161,7 @@ if (!empty($content)) { @file_put_contents("{$g['tmp_path']}/{$username}", $content); } -syslog(LOG_NOTICE, "user '{$username}' authenticated\n"); +syslog(LOG_NOTICE, "user '{$username}' authenticated"); closelog(); if (isset($_GET['username'])) { diff --git a/src/etc/inc/openvpn.tls-verify.php b/src/etc/inc/openvpn.tls-verify.php index 358618188a..5ea6218f89 100644 --- a/src/etc/inc/openvpn.tls-verify.php +++ b/src/etc/inc/openvpn.tls-verify.php @@ -61,7 +61,7 @@ foreach ($subj at $s) { //