From:             ed2019 at columbia dot edu
Operating system: RHEL4
PHP version:      4.3.10
PHP Bug Type:     IMAP related
Bug description:  imap_open() failes to use /authuser="" option with Cyrus 
server

Description:
------------
The imap_open() function documentation displays using the authuser swich,
to authenticate as the superuser but act as another user.  This option
fails against Cyrus IMAP servers, even though the underlying c-client
supports it.  For example:
mailutil check
{servername/imap/tls/novalidate-cert/authuser="cyrus"/user="uname"}INBOX

works, but the imap_open() call to do the same thing does not.

Reproduce code:
---------------
$mbox =
imap_open('{servername/imap/tls/novalidate-cert/authuser="cyrus"/user="uname"}INBOX',
"cyrus","cyruspw");

Expected result:
----------------
$mbox will be a valid imap mailbox stream.

Actual result:
--------------
Nothing, then in the error log:
[client ip.ip.ip.ip] PHP Warning:  imap_open(): Couldn't open stream
{mailserver/imap/tls/novalidate-cert/authuser="cyrus"/user="uname"}INBOX
in /var/www/html/cyrustt/testimap.php on line 3

[client ip.ip.ip.ip] PHP Notice:  (null)(): Can't do /authuser with this
server (errflg=2) in Unknown on line 0


-- 
Edit bug report at http://bugs.php.net/?id=33527&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33527&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33527&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33527&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33527&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33527&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33527&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33527&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33527&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33527&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33527&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33527&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33527&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33527&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33527&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33527&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33527&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33527&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33527&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33527&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33527&r=mysqlcfg

Reply via email to