When im trying to connect to an Exchange 2007 server over IMAP in PHP5 I get the following error message.
Kerberos error: No credentials cache found (try running kinit) for smtp.domain01.net
I was wondering if somebody found a way around this issue?
Related info: http://bugs.php.net/bug.php?id=33500
Just stumbled upon this question and thought I'd answer this one since no one else has. The following page gives a very direct and accurate answer on how to solve the problem: http://forums.kayako.com/threads/fix-kerberos-error-on-email-parser.29626/
Basically whats happening here (according to http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/43aef3d6-3e91-4e41-a788-ae073393ad37/) is that Microsoft Exchange 2007 broadcasts malformed Kerberos tokens, which causes the PHP IMAP driver to kill the stream. Some other sources claim that this is a PHP bug either way the solution in summary entails you to re-compile the PHP-IMAP extension with Kerberos disabled. This will force PHP IMAP to use Plain text authentication and will fix your problem.
Hope this helps.