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

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

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