summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-12-10 16:02:18 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-12-10 16:02:18 -0500
commit3aba1835f9d1a45e4f0d17823af2e13a4de19787 (patch)
tree248edb20629448851d3b01b76681565231abf38d /etc/inc/auth.inc
parent6735d0929eee41ef1cf2f253fa2a50740c066660 (diff)
downloadpfsense-3aba1835f9d1a45e4f0d17823af2e13a4de19787.zip
pfsense-3aba1835f9d1a45e4f0d17823af2e13a4de19787.tar.gz
Add log_auth() which with send items to syslogd using LOG_AUTH facilities. Use this new log_authh() for login error and success entries
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r--etc/inc/auth.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index c648519..bbcb53a 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -1212,7 +1212,7 @@ function session_auth() {
$_SESSION['Logged_In'] = "True";
$_SESSION['Username'] = $_POST['usernamefld'];
$_SESSION['last_access'] = time();
- log_error("Successful webConfigurator login for user '{$_POST['usernamefld']}' host: {$_SERVER['REMOTE_ADDR']}");
+ log_auth("Successful webConfigurator login for user '{$_POST['usernamefld']}' host: {$_SERVER['REMOTE_ADDR']}");
$HTTP_SERVER_VARS['AUTH_USER'] = $_SESSION['Username'];
if (isset($_POST['postafterlogin']))
return true;
@@ -1225,8 +1225,7 @@ function session_auth() {
} else {
/* give the user an error message */
$_SESSION['Login_Error'] = "Username or Password incorrect";
- log_error("webConfigurator authentication error for '{$_POST['usernamefld']}' host: '{$_SERVER['REMOTE_ADDR']}'");
-
+ log_auth("webConfigurator authentication error for '{$_POST['usernamefld']}' host: '{$_SERVER['REMOTE_ADDR']}'");
if(isAjax()) {
echo "showajaxmessage('{$_SESSION['Login_Error']}');";
return;
OpenPOWER on IntegriCloud