From 130f0cde3e13fecbc70c707d9bce78ea9eed71fc Mon Sep 17 00:00:00 2001 From: Lukas Erlacher Date: Thu, 21 Sep 2017 11:28:42 +1000 Subject: [PATCH] Add host to IMAP login error This simplifies debugging authentication failures in multi-host setups. --- program/lib/Roundcube/rcube_imap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/lib/Roundcube/rcube_imap.php b/program/lib/Roundcube/rcube_imap.php index 8b96b3024..cf84f84c5 100644 --- a/program/lib/Roundcube/rcube_imap.php +++ b/program/lib/Roundcube/rcube_imap.php @@ -189,8 +189,8 @@ class rcube_imap extends rcube_storage // write error log else if ($this->conn->error) { if ($pass && $user) { - $message = sprintf("Login failed for %s from %s. %s", - $user, rcube_utils::remote_ip(), $this->conn->error); + $message = sprintf("Login failed for %s against %s from %s. %s", + $user, $host, rcube_utils::remote_ip(), $this->conn->error); rcube::raise_error(array('code' => 403, 'type' => 'imap', 'file' => __FILE__, 'line' => __LINE__,