如果我的域名爲「mydomain.com」的服務器中有Active Directory設置,那麼我將爲此創建LDAP DirectorySearcher,如下所示。用於Office 365 Active Directory的LDAP DirectorySearcher
string domainPath = "LDAP://mydomain.com";
DirectoryEntry entry = new DirectoryEntry(domainPath, "userName", "password");
DirectorySearcher searcher = new DirectorySearcher(entry);
會是怎樣的domainPath,如果我想創建的DirectorySearcher爲我的Office 365的Active Directory?
P.S:我已同步服務器的Active Directory中Office中使用 'AzureADSync'