From:             julian dot pawlowski at jp-solution dot net
Operating system: SUSE Linux 8.2
PHP version:      4.3.5RC1
PHP Bug Type:     IMAP related
Bug description:  Authentication failed

Description:
------------
On my new server PHP's IMAP functions seem not to work correctly. I used
the same configuration that has been verified as working on another
machine:

----------------------------------------------
./configure \
--prefix=/usr/local/php/4.3.5RC1 \
--enable-inline-optimization \
--enable-debug=no \
--enable-safe-mode=no \
\
--enable-force-cgi-redirect \
--enable-discard-path=no \
--enable-fastcgi \
\
--with-config-file-path=/h/paw/config \
--with-pear=/usr/local/php/pear \
--enable-sigchild \
--enable-magic-quotes \
--enable-libgcc \
--with-openssl=/usr/local/openssl/current \
\
--with-zlib \
--with-zlib-dir=/usr/lib \
--enable-bcmath \
--with-bz2 \
--enable-calendar \
\
--with-jpeg-dir=/usr/lib \
--with-tiff-dir=/usr/lib \
\
--enable-dba \
--with-gdbm \
--with-ndbm \
--with-db4 \
--with-dbm \
--with-cdb \
--with-flatfile \
\
--enable-dbase \
--enable-dbx \
--enable-dio \
\
--with-dom \
--with-dom-xslt \
--with-xml \
--with-xslt-sablot \
--with-dom-exslt \
\
--enable-exif \
--enable-ftp \
\
--with-gd \
--with-png-dir=/usr/lib \
--with-xpm-dir=/usr/lib \
--with-ttf=/usr/lib \
--with-freetype-dir=/usr/include/freetype2 \
--with-t1lib \
--enable-gd-native-ttf \
\
--with-gettext \
--with-gmp \
--with-iconv \
--with-imap \
--with-imap-ssl \
--enable-mbstring \
--enable-mbstr-enc-trans \
--enable-mbregex \
--with-regex=system \
--with-mcal=/usr \
--with-mcrypt \
--with-mhash \
--with-mime-magic \
\
--with-mysql=/usr/local/mysql/current \
--with-mysql-sock \
\
--with-unixODBC \
\
--with-tiff-dir=/usr/lib \
\
--with-aspell \
--with-mm \
--enable-wddx \
\
--enable-memory-limit \
--enable-zend-multibyte \
--with-tsrm-pth \
--with-tsrm-st \
--with-tsrm-pthreads \
--enable-shmop \
--enable-track-vars \
--enable-trans-sid=no \
\
--enable-xml \
--without-oci8
----------------------------------------------

If I try to connect via Horde/IMP webmail the maillog shows the
following:

----------------------------------------------
Jan 21 14:22:00 host01 imapd: Connection, ip=[::ffff:1.2.3.4]
Jan 21 14:22:00 host01 imapd: LOGIN: DEBUG: ip=[::ffff:1.2.3.4],
command=AUTHENTICATE
Jan 21 14:22:00 host01 imapd: LOGIN: DEBUG: ip=[::ffff:1.2.3.4],
command=LOGOUT
Jan 21 14:22:00 host01 imapd: LOGOUT, ip=[::ffff:1.2.3.4]
----------------------------------------------

If I use POP3 to login everything works fine. (of course I didn't change
anything to the horde configuration).

I also compiled the IMAP c-client libraries on different versions (2002d,
2002e, 2004.RC4). It results the same...

Different versions of PHP have also been tried (4.3.2, 4.3.3, 4.3.4,
4.3.5RC1).

I suppose PHP does not use the right way to communicate with my IMAP
server (Courier IMAP, several versions tested). If I log a normal session
with a standard IMAP client (this case mozilla), it results this:

------------------------------------------
Jan 21 22:30:00 host01 imapd: Connection, ip=[::ffff:1.2.3.4]
Jan 21 22:30:00 host01 imapd: LOGIN: DEBUG: ip=[::ffff:1.2.3.4],
command=LOGIN
Jan 21 22:30:00 host01 imapd: LOGIN: DEBUG: ip=[::ffff:1.2.3.4],
username=TEST
Jan 21 22:30:00 host01 imapd: LOGIN: DEBUG: ip=[::ffff:1.2.3.4],
password=123test
Jan 21 22:30:00 host01 imapd: LOGIN, user=test, ip=[::ffff:1.2.3.4],
protocol=IMAP
Jan 21 22:30:00 host01 imapd: LOGOUT, user=test, ip=[::ffff:1.2.3.4],
headers=0, body=0 
--------------------------------------------

PHP uses the command AUTHENTICATE but this client uses LOGIN. Maybe I can
tell PHP to do this too?

Reproduce code:
---------------
see php.net example code for imap_open()

Expected result:
----------------
list of mails from the mailbox

Actual result:
--------------
"Call failed"

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

Reply via email to