使活动目录可供远程用户使用
我有一个充满testing数据的广告。 我有自动化testing,查询本指令。 我很想能够从任何地方运行这些testing,包括在域之外。 我已经看到了这个问题我应该公开我的Active Directory远程用户的公共互联网? 。 我真的不关心应用程序,这是testing数据,我的安全要求是最小的。 我如何设置我的广告是普遍可及的? 我正在使用System.DirectoryServices库来查询AD是否重要。 using (var directoryEntry = new DirectoryEntry("LDAP://…", "username", "password")) using (var searcher = new DirectorySearcher(directoryEntry, "(givenName=*)", new[] { "attributeOfInterest" })) { return searcher.FindAll(); }