Feature request #6945: Login failures can be logged with t3lib_div::syslog().
authorAndreas Otto <andreas.otto@dkd.de>
Mon, 17 Dec 2007 13:57:59 +0000 (13:57 +0000)
committerAndreas Otto <andreas.otto@dkd.de>
Mon, 17 Dec 2007 13:57:59 +0000 (13:57 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2844 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/sv/class.tx_sv_auth.php

index 4fd78b5..ca46f95 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-12-17 Andreas Otto <andreas.otto@dkd.de>
+
+       * Feature request #6945: Login failures can be logged with t3lib_div::syslog().
+
 2007-12-16  Benjamin Mack  <mack@xnos.org>
 
        * (bugfix) #6955: fileadmin contextual menu doesn't popup well
index 3b24316..e76a8d0 100644 (file)
@@ -73,6 +73,11 @@ class tx_sv_auth extends tx_sv_authbase      {
                                $this->writelog(255,3,3,2,
                                        "Login-attempt from %s (%s), username '%s' not found!!",
                                        Array($this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $this->login['uname']));  // Logout written to log
+                               t3lib_div::sysLog(
+                                       sprintf( "Login-attempt from %s (%s), username '%s' not found!", $this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $this->login['uname'] ),
+                                       'Core',
+                                       0
+                               );
                        } else {
                                if ($this->writeDevLog)         t3lib_div::devLog('User found: '.t3lib_div::arrayToLogString($user, array($this->db_user['userid_column'],$this->db_user['username_column'])), 'tx_sv_auth');
                        }
@@ -100,6 +105,11 @@ class tx_sv_auth extends tx_sv_authbase    {
                                        $this->writelog(255,3,3,1,
                                                "Login-attempt from %s (%s), username '%s', password not accepted!",
                                                Array($this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $this->login['uname']));
+                                       t3lib_div::sysLog(
+                                               sprintf( "Login-attempt from %s (%s), username '%s', password not accepted!", $this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $this->login['uname'] ),
+                                               'Core',
+                                               0
+                                       );
                                }
                                if ($this->writeDevLog)         t3lib_div::devLog('Password not accepted: '.$this->login['uident'], 'tx_sv_auth', 2);
                        }
@@ -111,6 +121,11 @@ class tx_sv_auth extends tx_sv_authbase    {
                                        $this->writelog(255,3,3,1,
                                                "Login-attempt from %s (%s), username '%s', locked domain '%s' did not match '%s'!",
                                                Array($this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $user[$this->db_user['username_column']], $user['lockToDomain'], $this->authInfo['HTTP_HOST']));
+                                       t3lib_div::sysLog(
+                                               sprintf( "Login-attempt from %s (%s), username '%s', locked domain '%s' did not match '%s'!", $this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $user[$this->db_user['username_column']], $user['lockToDomain'], $this->authInfo['HTTP_HOST'] ),
+                                               'Core',
+                                               0
+                                       );
                                }
                                $OK = false;
                        }