【发布时间】:2016-08-02 17:05:38
【问题描述】:
如果我的服务器中有一个 Active Directory 设置,其域是“mydomain.com”,我将为此创建 LDAP DirectorySearcher,如下所示。
string domainPath = "LDAP://mydomain.com";
DirectoryEntry entry = new DirectoryEntry(domainPath, "userName", "password");
DirectorySearcher searcher = new DirectorySearcher(entry);
如果我想为我的 Office 365 Active Directory 创建 DirectorySearcher,domainPath 是什么?
P.S : 我已使用“AzureADSync”将服务器的 Active Directory 与 Office 365 同步
【问题讨论】:
标签: active-directory office365 azure-active-directory directoryservices