From:             michael dot heimpold at s2000 dot tu-chemnitz dot de
Operating system: Debian Etch
PHP version:      5.2.0
PHP Bug Type:     Feature/Change Request
Bug description:  Enable AUTH PLAIN mechanism in underlaying libc-client

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--


-- 
Edit bug report at http://bugs.php.net/?id=39779&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39779&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39779&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39779&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39779&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39779&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39779&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39779&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39779&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39779&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39779&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39779&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39779&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39779&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39779&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39779&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39779&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39779&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39779&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39779&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39779&r=mysqlcfg
  • #39779 [NEW]: Enable ... michael dot heimpold at s2000 dot tu-chemnitz dot de

Reply via email to