summaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-05-02 19:35:54 +0200
committerAleksander Machniak <alec@alec.pl>2014-05-02 19:35:54 +0200
commit37ac40719f791d80a1cd0004629a1089019a0669 (patch)
treee4d5774646b009f678d7bfea63895a4da513d090 /installer
parentcdf79e0926b5a45464a7c7ed8cbe4a5e827f95c6 (diff)
Fix IMAP connection test in installer so it is aware of imap_auth_type (#1489746)
Diffstat (limited to 'installer')
-rw-r--r--installer/test.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/installer/test.php b/installer/test.php
index 55807e98d..b1b67e57d 100644
--- a/installer/test.php
+++ b/installer/test.php
@@ -425,6 +425,11 @@ if (isset($_POST['imaptest']) && !empty($_POST['_host']) && !empty($_POST['_user
$imap_user = idn_to_ascii($_POST['_user']);
$imap = new rcube_imap(null);
+ $imap->set_options(array(
+ 'auth_type' => $RCI->getprop('imap_auth_type'),
+ 'debug' => $RCI->getprop('imap_debug'),
+ ));
+
if ($imap->connect($imap_host, $imap_user, $_POST['_pass'], $imap_port, $imap_ssl)) {
$RCI->pass('IMAP connect', 'SORT capability: ' . ($imap->get_capability('SORT') ? 'yes' : 'no'));
$imap->close();