Branch 'roundcubemail-plugins-kolab-3.1' - plugins/kolab_auth

Aleksander Machniak machniak at kolabsys.com
Wed Jan 15 11:09:24 CET 2014


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

New commits:
commit a01a3ea2684f00de684e4822e13745732d9cab73
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 9d129f0..b5e8081 100644
--- a/plugins/kolab_auth/kolab_auth.php
+++ b/plugins/kolab_auth/kolab_auth.php
@@ -401,12 +401,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