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!

alt text


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -