From: ed2019 at columbia dot edu
Operating system: RHEL 4
PHP version: 4.3.10
PHP Bug Type: IMAP related
Bug description: imap_open() fails when the server advertises GSSAPI
Description:
------------
Running stock RHEL4 on Intel, with stock RedHat RPMS of php & everything
else, all maintained with up2date.
imap_open() fails with the following error message, if the target IMAP
server advertises GSSAPI:
[client ip.ip.ip.ip] PHP Notice: (null)(): GSSAPI failure: Credentials
cache permissions incorrect (errflg=1) in Unknown on line 0
[client ip.ip.ip.ip] PHP Notice: (null)(): Can not authenticate to IMAP
server: Client canceled authentication (errflg=2) in Unknown on line 0
[client ip.ip.ip.ip] PHP Warning: imap_open(): Couldn't open stream
{ip.ip.ip.ip:993/imap/ssl/novalidate-cert} in /var/www/html/testimap.php
on line 3
Reproduce code:
---------------
$mbox = imap_open("{mailhost:993/imap/ssl/novalidate-cert/norsh}INBOX",
"username", "pw");
Expected result:
----------------
$mbox should have been a valid imap resource.
Actual result:
--------------
>From /var/log/httpd/error_log
[client ip.ip.ip.ip] PHP Notice: (null)(): GSSAPI failure: Credentials
cache permissions incorrect (errflg=1) in Unknown on line 0
[client ip.ip.ip.ip] PHP Notice: (null)(): Can not authenticate to IMAP
server: Client canceled authentication (errflg=2) in Unknown on line 0
[client ip.ip.ip.ip] PHP Warning: imap_open(): Couldn't open stream
{ip.ip.ip.ip:993/imap/ssl/novalidate-cert} in /var/www/html/testimap.php
on line 3
--
Edit bug report at http://bugs.php.net/?id=33500&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33500&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=33500&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=33500&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33500&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33500&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33500&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33500&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33500&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33500&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33500&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=33500&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=33500&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33500&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33500&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33500&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33500&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33500&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33500&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33500&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33500&r=mysqlcfg