0

我是 AD 和 adlds 的新手,并试图阅读架构但无法获得它。谁能帮我吗??我试图通过下面的代码连接到广告

 DirectoryEntry entry = new DirectoryEntry(
        "LDAP://CN=Users,DC=addomain,DC=com",
        null,
        null,
        AuthenticationTypes.Secure
        );
        PropertyCollection props = entry.Properties;

        foreach (string propName in props.PropertyNames)
        {
            if (entry.Properties[propName].Value != null)
            {
                Console.WriteLine(propName + " = " + entry.Properties[propName].Value.ToString());
            }
            else
            {
                Console.WriteLine(propName + " = NULL");
            }
        }

输出:

单击此处查看输出

我想要广告中的所有属性名称对象名称,但我得到了这个输出

4

0 回答 0