plugins/kolab_auth

Aleksander Machniak machniak at kolabsys.com
Tue Oct 8 13:45:37 CEST 2013


 plugins/kolab_auth/kolab_auth.php |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 004cd5ac56d5f6faa666283d8ed14c09fa201f60
Author: Aleksander Machniak <machniak at kolabsys.com>
Date:   Tue Oct 8 13:45:23 2013 +0200

    Fixed kolab_auth_mailhost feature

diff --git a/plugins/kolab_auth/kolab_auth.php b/plugins/kolab_auth/kolab_auth.php
index 5e924d4..7ff5761 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];
             }
         }
 




More information about the commits mailing list