|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39779 Enable AUTH PLAIN mechanism in underlaying libc-client
Submitted: 2006-12-08 17:47 UTC Modified: 2006-12-17 18:23 UTC
From: michael dot heimpold at s2000 dot tu-chemnitz dot de Assigned:
Status: Closed Package: IMAP related
PHP Version: 5.2.0 OS: Debian Etch
Private report: No CVE-ID: None
 [2006-12-08 17:47 UTC] michael dot heimpold at s2000 dot tu-chemnitz dot de
I couldn't connect to an imap server which only advertises AUTH=PLAIN as authentication mechanism. After having a look at the sources I wonder why php-imap doesn't enabled the necessary authenticator in c-client.
After adding one line all works perfectly.
Have I missed anything why the authenticator isn't included by default?

Reproduce code:
Patch of added line:
diff -urN php5-5.2.0.orig/ext/imap/php_imap.c php5-5.2.0/ext/imap/php_imap.c
--- php5-5.2.0.orig/ext/imap/php_imap.c	2006-10-05 16:25:41.000000000 +0200
+++ php5-5.2.0/ext/imap/php_imap.c	2006-12-05 16:21:11.000000000 +0100
@@ -463,6 +463,7 @@
 	auth_link(&auth_gss);		/* link in the gss authenticator */
+	auth_link(&auth_pla);		/* link in the pla authenticator */
 	ssl_onceonlyinit ();


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-16 13:44 UTC] michael dot heimpold at s2000 dot tu-chemnitz dot de
Fits better in category 'IMAP related'
 [2006-12-17 18:23 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun May 28 23:03:39 2023 UTC