How do I enumerate through Active Directory Schema attributes? -
i'm trying enumerate through active directory schema , don't think i'm seeing attributes. take , tell me 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; }
you might want check out c# open source browser active directory: beavertail.
with beavertail, can opt show schema container alongside "regular" ad tree, , when @ schema on windows 2003 server, see quite few schema classes!
Comments
Post a Comment