ID:               33500
 Comment by:       steve dot englart at gmail dot com
 Reported By:      ed2019 at columbia dot edu
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: RHEL4
 PHP Version:      4.3.10
 New Comment:

I can't connect to Exchange 2007 sp1
PHP running on Windows 2000
C:\php>php -v
PHP 5.2.8 (cli) (built: Dec  8 2008 19:31:23)

with Pear Net_POP3         1.3.6   stable

example from getMessage() after logon...

      Error in authentication: USER NOT supported authentication
method!. This server supports these methods: GSSAPI, but I support APO
P,PLAIN,LOGIN,USER


Previous Comments:
------------------------------------------------------------------------

[2009-01-07 20:07:47] spryde at aas dot com

Bug still present, 5.2.8, Centos 5.2.

------------------------------------------------------------------------

[2008-12-07 03:59:17] phalenor at gmail dot com

imap_open() absolutely needs a way to specify the order of
authentication mechanisms to try. If one is attempting to do
username/password auth to an imap server that supports GSSAPI,
imap_open() tries GSSAPI then stops, never attempting to do PLAIN auth
or otherwise. 

This should not be viewed as a misconfiguration of the imap server, as
clients that use c-client manage to try multiple auth mechs.

------------------------------------------------------------------------

[2008-10-10 13:36:24] php at eikel dot org

Hello,

this problem still exists in PHP 5.2.6. As stated by Mark Crispin [1]
this problem is probably a bug in the PHP IMAP implementation. Any
suggestions how to fix this problem?

Regards,
Benjamin

[1]
http://mailman2.u.washington.edu/pipermail/imap-uw/2005-June/000101.html

------------------------------------------------------------------------

[2008-06-20 15:04:41] josh_barth at hotmail dot com

If you happen to run across this error while attempting to connect to
an Exchange server.......  In my case Exchange 2007 from Ubuntu

Install Kerberos client i.e heimdal-client

Switch to the apache user....for Ubuntu that is "www-data":

su www-data

kinit usern...@domainname.com 'Mind the case lo...@upper

klist 'Will show current ticket granting ticket and other tokens

Note: krbtgt will expire and this procedure will need to be repeated I
am currently researching a method to ensure an active krbtgt at all
times

Try testing with this script as the apache user, replacing ipaddress,
username, domainname and password.

<?php
$mbox =
imap_open("{ipaddress:993/imap/ssl/novalidate-cert/notls/debug}INBOX",
"domainname/username", "password") or
die(imap_last_error()."<br>Connection Failure!");

echo "<h1>Mailboxes</h1>\n";
$folders = imap_listmailbox($mbox, "{ipaddress:993}", "*");

if ($folders == false) {
    echo "Call failed<br />\n";
} else {
    foreach ($folders as $val) {
        echo $val . "<br />\n";
    }
}

echo "<h1>Headers in INBOX</h1>\n";
$headers = imap_headers($mbox);

if ($headers == false) {
    echo "Call failed<br />\n";
} else {
    foreach ($headers as $val) {
        echo $val . "<br />\n";
    }
}

imap_close($mbox);
?>

------------------------------------------------------------------------

[2008-05-26 10:36:17] ruben at dedigate dot com

This issue is also in PHP5 ... there's no way to open an imap/pop
connection to an exchange2007 server that announces GSSAPI :-(

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/33500

-- 
Edit this bug report at http://bugs.php.net/?id=33500&edit=1

Reply via email to