#19522 [Opn->Bgs]: open_imap() fails on an IMAP server capable of TLS

From: Date: Sun, 22 Sep 2002 15:36:44 +0000
Subject: #19522 [Opn->Bgs]: open_imap() fails on an IMAP server capable of TLS
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-20043@lists.php.net to get a copy of this message
ID: 19522 Updated by: sniper@php.net Reported By: andrew-php@andrew.net.au -Status: Open +Status: Bogus Bug Type: IMAP related Operating System: Linux PHP Version: 4.2.3 New Comment: It's c-client thing, like I suspected. And not really bug, iirc. Previous Comments: ------------------------------------------------------------------------ [2002-09-21 20:29:38] andrew-php@andrew.net.au Using the imap_open("{localhost:143/imap/tls/novalidate-cert}",$username,$password); modifiers has worked around the problem. Thankyou very much. The Debian package maintainer thinks the underlying problem is with the libc-client deciding to negotiate TLS if it sees that capability, which obviously has unexpected results if it's not expecting a TLS connection. ------------------------------------------------------------------------ [2002-09-20 12:50:07] sniper@php.net This might also be one to try: imap_open("{localhost:143/imap/tls/novalidate-cert}",$username,$password); ------------------------------------------------------------------------ [2002-09-20 12:48:06] sniper@php.net Look in this page for how you can pass some extra authentication parameters: http://www.php.net/manual/en/function.imap-open.php Something like this should work: imap_open("{localhost:143/imap/tls}", $username,$password); The c-client must of course be compiled with the ssl support.. ------------------------------------------------------------------------ [2002-09-20 08:32:44] andrew-php@andrew.net.au The imap_open() call is: imap_open("{localhost:143}", $username, $password); ------------------------------------------------------------------------ [2002-09-20 08:08:18] sniper@php.net Please give the full imap_open() line.. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/19522 -- Edit this bug report at http://bugs.php.net/?id=19522&edit=1

« previous php.bugs (#20043) next »