I'm trying to enumerate through the Active Directory schema and don't think I'm seeing all the attributes. Could someone take a look and tell me where I'm going wrong?
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;
}