From: geoilie at yahoo dot com Operating system: CentOS 6.3 PHP version: 5.3.24 Package: IMAP related Bug Type: Bug Bug description:function parameter not working
Description: ------------ --- >From manual page: http://www.php.net/function.imap-open#refsect1-function.imap-open-description --- Function fails to connect to Exchange 2007-2010 IMAP or POP. See related: https://bugs.php.net/bug.php?id=33500 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=161826 Problem still not solved. Using the new DISABLE_AUTHENTICATOR parameter, the server ignores the options to returns: "Array ( [0] => Unknown GSSAPI failure: An invalid name was supplied [1] => GSSAPI mechanism status: Hostname cannot be canonicalized [2]..." Problem noted in support forums in many web applications that try to read an Exchange POP or IMAP mailbox: sugerCRM, GLPI, Sit, OsTicket, Kayako, etc. Test script: --------------- <?php imap_open('{mailserver.com/novalidate-cert/ssl}','username','password',null,1,array(DISABLE_AUTHENTICATOR=>array('GSSAPI', 'PLAIN'))); var_dump(imap_errors()); Expected result: ---------------- bool(false) The code should open a connection string to the Exchange imap server. Actual result: -------------- array(6) { [0]=> string(52) "Unknown GSSAPI failure: An invalid name was supplied" [1]=> string(57) "GSSAPI mechanism status: Hostname cannot be canonicalized" [2]=> string(56) "Retrying PLAIN authentication after AUTHENTICATE failed." [3]=> string(56) "Retrying PLAIN authentication after AUTHENTICATE failed." [4]=> string(57) "Can not authenticate to IMAP server: AUTHENTICATE failed." [5]=> string(49) "[CLOSED] IMAP connection broken (server response)" } -- Edit bug report at https://bugs.php.net/bug.php?id=64629&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64629&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64629&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64629&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64629&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64629&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64629&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64629&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64629&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64629&r=support Expected behavior: https://bugs.php.net/fix.php?id=64629&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64629&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64629&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64629&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64629&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64629&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64629&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64629&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64629&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64629&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64629&r=mysqlcfg