我想在ActiveDirectory中获取用户的组成员身份,而不在域中。当我在域内运行时,一切都很好。 var context = new PrincipalContext(ContextType.Domain);
var principal = UserPrincipal.FindByIdentity(context, IdentityType.Name, "administrator");
我想在一个网站项目中使用System.DirectoryServices,我得到这个错误: The type or namespace name 'DirectoryServices' does not exist in the namespace 'System' (are you missing an assembly reference?) 我的项目有中System.DirectorySer
的SecureSocketLayer我试图修复产品中的SSL错误,并注意到虽然代码将SSL设置为true,但代码中的下一行仍然为false 。我为此写了一个单元测试,单元测试证实了我的怀疑。 [TestMethod]
public void SecureSocketLayerSetToTrue()
{
var ldapConnection = new LdapConn