php.net |  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
Description:
------------
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:
--snip--
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 @@
 #if HAVE_IMAP_KRB && defined(HAVE_IMAP_AUTH_GSS)
 	auth_link(&auth_gss);		/* link in the gss authenticator */
 #endif
+	auth_link(&auth_pla);		/* link in the pla authenticator */
 
 #ifdef HAVE_IMAP_SSL
 	ssl_onceonlyinit ();
--snap--


Patches

Pull Requests

History

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] iliaa@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC