X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fhtml%2Findex.php;h=32e3eb227ac614cad82f4c46530fa92578fc7681;hb=c8414c5914194aa95defbb65418a2cfb1f70327b;hp=00766954d939e4ecc00957a043f9d0c2b47212b3;hpb=e3d9c714d517b1ef078478b52948e1e7d0a55878;p=gosa.git diff --git a/gosa-core/html/index.php b/gosa-core/html/index.php index 00766954d..32e3eb227 100644 --- a/gosa-core/html/index.php +++ b/gosa-core/html/index.php @@ -311,7 +311,12 @@ 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\""); + if(isset($_SERVER['REMOTE_ADDR'])){ + $ip= $_SERVER['REMOTE_ADDR']; + new log("security","login","",array(),"Authentication failed for user \"$username\" [from $ip]"); + }else{ + new log("security","login","",array(),"Authentication failed for user \"$username\""); + } } else { /* Remove all locks of this user */ del_user_locks($ui->dn);