php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27031 Authentication failed
Submitted: 2004-01-24 18:32 UTC Modified: 2004-01-25 08:45 UTC
From: julian dot pawlowski at jp-solution dot net Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 4.3.5RC1 OS: SUSE Linux 8.2
Private report: No CVE-ID: None
 [2004-01-24 18:32 UTC] julian dot pawlowski at jp-solution dot net
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"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-25 00:05 UTC] sniper@php.net
--with-imap-ssl should point to same place as --with-openssl does.

Also, see bug #27017 for more information.

 [2004-01-25 08:45 UTC] julian dot pawlowski at jp-solution dot net
Thank you for your advise. I just tried to recompile PHP with --with-imap-ssl=/usr/local/openssl/current and also without --with-imap-ssl. But my problem not beeing able to connect to any IMAP server is still the same ;-(
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Nov 25 00:01:33 2024 UTC