summaryrefslogtreecommitdiff
path: root/plugins/kolab_auth
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2013-10-08 11:45:23 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2013-10-08 11:45:23 (GMT)
commit004cd5ac56d5f6faa666283d8ed14c09fa201f60 (patch)
treeee882f37b7a8fbb0b94bb441446cfbadb73cdab4 /plugins/kolab_auth
parentcc21e9161c6c3de5d5f388b72b563e200216d7f0 (diff)
downloadroundcubemail-plugins-kolab-004cd5ac56d5f6faa666283d8ed14c09fa201f60.tar.gz
Fixed kolab_auth_mailhost feature
Diffstat (limited to 'plugins/kolab_auth')
-rw-r--r--plugins/kolab_auth/kolab_auth.php4
1 files changed, 2 insertions, 2 deletions
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];
}
}