使用与 EWS(交换 Web 服务)的集成身份验证

发布于 2024-08-07 04:23:34 字数 343 浏览 1 评论 0原文

我正在建立公司内部网。其中一个请求是与 Exchange Server 2007 进行一些集成。

在我的测试中,只要我传递用户名和密码,我就可以使用 NetworkCredential 向 EWS 进行身份验证。在我们的内联网中,我想传递登录用户的凭据。我们将仅使用 Windows 集成身份验证。

我似乎无法正常工作 - 将 ExchangeServiceBinding 中的凭据设置为 CredentialCache.DefaultCredentials 不起作用。

来自 Web 服务器的 .net 和 IIS 6 Windows 2003 服务器上的 Exchange 2007

有什么想法吗?谢谢。

I'm in the process of setting up a company intranet. One of the requests is to do some intregration with Exchange Server 2007.

In my tests I can authenticate to EWS just fine using NetworkCredential, as long as I'm passing in my username and password. In our intranet, I'd like to pass on the credientials of the logged in user. We'll be using windows integrated authentication only.

I can't seem to get this working - setting the credentials in the ExchangeServiceBinding to CredentialCache.DefaultCredentials didn't work.

.net and IIS 6 from the web server
Exchange 2007 on Windows 2003 server

Any ideas? Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文