我正在尝试枚举 Active Directory 架构,但我认为我没有看到所有属性。有人可以看看并告诉我哪里出错了吗?
objRoot = new DirectoryEntry("LDAP://" + serverName + ":" + port + "/RootDSE");
strSchemaNamingContext = objRoot.Properties[ "schemaNamingContext"].Value.ToString();
objSchema = new DirectoryEntry(String.Concat("LDAP://" + serverName + ":" + port + "/", strSchemaNamingContext));
foreach (DirectoryEntry schemaObjectToTest in objSchema.Children)
{
var rest = schemaObjectToTest.Properties["systemFlags"].Value;
}