]> git.donarmstrong.com Git - roundcube.git/commitdiff
Add patch from Kris Popendorf to log failed logins. Closes: #505267.
authorVincent Bernat <bernat@debian.org>
Sun, 15 Feb 2009 17:02:48 +0000 (17:02 +0000)
committerJérémy Bobbio <lunar@debian.org>
Sat, 18 Jun 2011 18:10:28 +0000 (20:10 +0200)
debian/changelog
debian/patches/log-failed-logins.patch [new file with mode: 0644]
debian/patches/series

index 0460688740ccf082ff93beb830036c08462ad023..abd3bd379fae65d6d3fb9459242bcb6b372d4e81 100644 (file)
@@ -16,6 +16,7 @@ roundcube (0.2~stable-1) unstable; urgency=low
   * Fix pending l10n issues:
       + Update English debconf template. Closes: #473794.
       + Add Swedish translation thanks to Martin Bagge. Closes: #508752.
+  * Add patch from Kris Popendorf to log failed logins. Closes: #505267.
 
  -- Vincent Bernat <bernat@debian.org>  Sun, 15 Feb 2009 16:18:58 +0100
 
diff --git a/debian/patches/log-failed-logins.patch b/debian/patches/log-failed-logins.patch
new file mode 100644 (file)
index 0000000..09bfc71
--- /dev/null
@@ -0,0 +1,13 @@
+Log failed logins.
+--- roundcube-0.1.1/index.php  2008-11-11 18:17:37.939438895 +0900
++++ roundcube-0.1.1-secured/index.php  2008-11-11 18:01:06.000000000 +0900
+@@ -101,6 +101,9 @@
+   }
+   else {
+     $OUTPUT->show_message($IMAP->error_code < -1 ? 'imaperror' : 'loginfailed', 'warning');
++    if($IMAP->error_code != -1){
++      file_put_contents('php://stderr',"[".strftime("%c")."] [roundcube] [client ".$_SERVER['REMOTE_ADDR']."] failed login attempt.\n");
++    }
+     $RCMAIL->kill_session();
+   }
+ }
index 9753d888e0a24483e9bcc5b7d8ceb121b7d7f8ac..67f8a016d0e946f65c39c5d570315f722dc29d43 100644 (file)
@@ -3,3 +3,4 @@ correct_install_path.patch
 use_packaged_tinymce.patch
 correct-magic-path.patch
 cve-2009-0413.patch
+log-failed-logins.patch