Fixed kolab_auth_mailhost feature
This commit is contained in:
parent
cc21e9161c
commit
004cd5ac56
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue