Code

Added logging of IP address
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 11 Apr 2011 08:52:26 +0000 (08:52 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 11 Apr 2011 08:52:26 +0000 (08:52 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20679 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/html/index.php

index 00766954d939e4ecc00957a043f9d0c2b47212b3..e8597646fba22413648dbd1c56921f820953db89 100644 (file)
@@ -311,7 +311,8 @@ if (($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])) || $htacces
             $message= _("Please check the username/password combination!");
             $smarty->assign ('nextfield', 'password');
             session::global_set('config',$config);
-            new log("security","login","",array(),"Authentication failed for user \"$username\"");
+            $ip= $_SERVERREMOTE_ADDR;
+            new log("security","login","",array(),"Authentication failed for user \"$username\" [from $ip]");
         } else {
             /* Remove all locks of this user */
             del_user_locks($ui->dn);