Code

Added logging of IP address. Closes #1137. Thanks for contribution.
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 11 Apr 2011 08:48:09 +0000 (08:48 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 11 Apr 2011 08:48:09 +0000 (08:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@20678 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/html/index.php

index 99d5954528a9d2981b4ae7f42b20a692d0c0a5a5..eae3f532d184898e9f2f261249273c7dfcb17a54 100644 (file)
@@ -321,7 +321,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);