From 004cd5ac56d5f6faa666283d8ed14c09fa201f60 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 8 Oct 2013 13:45:23 +0200 Subject: [PATCH] Fixed kolab_auth_mailhost feature --- plugins/kolab_auth/kolab_auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/kolab_auth/kolab_auth.php b/plugins/kolab_auth/kolab_auth.php index 5e924d40..7ff57616 100644 --- a/plugins/kolab_auth/kolab_auth.php +++ b/plugins/kolab_auth/kolab_auth.php @@ -385,12 +385,12 @@ class kolab_auth extends rcube_plugin $_SESSION['user_roledns'] = (array)($record[$role_attr]); } - if (!empty($imap_attr) && !empty($record[$role_attr])) { + if (!empty($imap_attr) && !empty($record[$imap_attr])) { $default_host = $rcmail->config->get('default_host'); if (!empty($default_host)) { rcube::write_log("errors", "Both default host and kolab_auth_mailhost set. Incompatible."); } else { - $args['host'] = "tls://" . $record[$role_attr]; + $args['host'] = "tls://" . $record[$imap_attr]; } }