【问题标题】:How do I enumerate through Active Directory Schema attributes?如何枚举 Active Directory 架构属性?
【发布时间】:2010-09-29 18:47:33
【问题描述】:

我正在尝试枚举 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;
}

【问题讨论】:

    标签: active-directory schema adam


    【解决方案1】:

    您可能想查看我的用于 Active Directory 的 C# 开源浏览器:BeaverTail

    使用 BeaverTail,您可以选择在“常规”AD 树旁边显示架构容器,当我在 Windows 2003 Server 上查看我的架构时,我会看到很多架构类!

    【讨论】:

      猜你喜欢
      • 2013-11-24
      • 2018-10-25
      • 2011-08-10
      • 2011-04-22
      • 1970-01-01
      • 1970-01-01
      • 2023-04-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多