首页 > 解决方案 > 从 mac 使用 EWS 托管 API 2.2 连接到 Exchange Web Server (EWS)

问题描述

我们正在尝试使用 EWS 托管 API 2.2 以编程方式连接到 EWS。

直到 Mac Os 10.12,我们都可以使用

//Connect by using the default credentials of the authenticated user. service.UseDefaultCredentials = true; service.EnableScpLookup = false;

// Use Autodiscover to set the URL endpoint. service.AutodiscoverUrl("user1@contoso.com");

(参考:- https://docs.microsoft.com/en-us/previous-versions/office/developer/exchange-server-2010/ff597939(v%3Dexchg.80)

使用它并且无需显式提供凭据,我们就能够连接到 Mac 中的 EWS。

但是从 10.13 开始,要连接到 EWS,这不起作用。是否有任何人能够连接 Exchange Server,而无需在域管理的 Mac 计算机(用户已经登录)中明确提供凭据。

标签: macosoutlookexchange-serverexchangewebservicescredentials

解决方案


推荐阅读