From 7b273c1aa128ff54501bffc2dfc8047319257bac Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 11 Apr 2011 08:48:09 +0000 Subject: [PATCH] Added logging of IP address. Closes #1137. Thanks for contribution. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@20678 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gosa-core/html/index.php b/gosa-core/html/index.php index 99d595452..eae3f532d 100644 --- a/gosa-core/html/index.php +++ b/gosa-core/html/index.php @@ -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); -- 2.30.2