在 PHP5 中使用 imap_open 连接到 Exchange 2007 服务器时出现问题
当我尝试通过 PHP5 中的 IMAP 连接到 Exchange 2007 服务器时,我收到以下错误消息。
Kerberos error: No credentials cache found (try running kinit) for smtp.domain01.net
我想知道是否有人找到解决这个问题的方法?
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
只是偶然发现了这个问题,我想我会回答这个问题,因为没有其他人回答过。 以下页面给出了如何解决问题的非常直接和准确的答案:http://forums.kayako.com/threads/fix-kerberos-error-on-email-parser.29626/
基本上这里发生了什么(根据 http://social.technet.microsoft.com/ Forums/en-US/exchangesvradmin/thread/43aef3d6-3e91-4e41-a788-ae073393ad37/) 是 Microsoft Exchange 2007 广播格式错误的 Kerberos 令牌,导致 PHP IMAP 驱动程序终止该流。 其他一些消息来源声称这是 一个 PHP 错误 无论哪种方式,解决方案总结需要您在禁用 Kerberos 的情况下重新编译 PHP-IMAP 扩展。 这将强制 PHP IMAP 使用纯文本身份验证并解决您的问题。
希望这可以帮助。
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.
Exchange 默认启用 IMAP 协议。 即使确实如此,IMAP 的 Exchange 实现也可能是也可能不是真正的 IMAP。 也就是说,此 Technet 线程 可能适用于您的情况。
Exchange does have the IMAP protocol enabled by default. Even when it does, the Exchange implementation of IMAP may or may not really be IMAP. That said, this Technet thread may apply to your situation.
我知道这是一个老问题,但在几年没有出现问题后最近几次出现这个问题后,我们的原因是其他原因。 原来 Exchange 服务器只需要重新启动 IMAP 服务!
很多网站的共识与上面的答案相同,但我真的不想走上重新编译 PHP 的路。 对我来说这个问题似乎与 Kerberos 或 PHP 问题没有任何关系,只是一个简单的身份验证问题。 服务可能需要重新启动,因为它发送了格式错误的令牌...希望其他人会发现这有帮助。
I know this is an old one, but after getting this problem a couple of times recently after years of no issues, something else was the cause for us. Turns out the Exchange server just needed the IMAP service restarted!
The consensus on a lot of sites was the same as above answers, but I really didn't want to go down the path of recompiling PHP. for me this issue didn't seem to have anything to do with Kerberos or PHP issues, just a simple authentication problem. Possibly the service needed a restart as it was sending malformed tokens...Hopefully someone else will find this helpful.