Fixed kolab_auth_mailhost feature
This commit is contained in:
parent
f7ca944b4b
commit
a01a3ea268
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]);
|
||||
}
|
||||
|
||||
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