Merge branch 'roundcubemail-plugins-kolab-3.1' of ssh://git.kolab.org/git/roundcubemail-plugins-kolab into roundcubemail-plugins-kolab-3.1
This commit is contained in:
commit
62533e9241
1 changed files with 2 additions and 2 deletions
|
@ -401,12 +401,12 @@ class kolab_auth extends rcube_plugin
|
||||||
$_SESSION['user_roledns'] = (array)($record[$role_attr]);
|
$_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');
|
$default_host = $rcmail->config->get('default_host');
|
||||||
if (!empty($default_host)) {
|
if (!empty($default_host)) {
|
||||||
rcube::write_log("errors", "Both default host and kolab_auth_mailhost set. Incompatible.");
|
rcube::write_log("errors", "Both default host and kolab_auth_mailhost set. Incompatible.");
|
||||||
} else {
|
} else {
|
||||||
$args['host'] = "tls://" . $record[$role_attr];
|
$args['host'] = "tls://" . $record[$imap_attr];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue