【问题标题】:How can I determine *version* of Active Directory server using a remote LDAP client?如何使用远程 LDAP 客户端确定 Active Directory 服务器的*版本*?
【发布时间】:2014-04-03 17:07:27
【问题描述】:

我想通过 LDAP 以编程方式区分不同类型的服务,以适应它们的怪癖。

我是否可以依赖特定的实体/记录/字段来区分 Windows Server 2003 Active Directory 服务器与 Windows Server 2008 AD 服务器与 Windows Server 2012 AD?

注意:

question about using javax.naming with AD 中出于类似目的,查询

ldapsearch -h HOST -b " " -s base objectclass=*

建议。对于我测试过的至少一台 AD 服务器,它没有返回任何内容。

【问题讨论】:

    标签: active-directory ldap


    【解决方案1】:

    What 的哪个版本?

    Microsoft Active Directory 不在 ROOTDSE 中提供 venderVersion。

    您可以将“forestFunctionality”和/或“domainFunctionality”作为整数返回。

    要查找所有 DC 及其版本,请使用以下查询:

    (&(&(&(&(samAccountType=805306369)(primaryGroupId=516))(objectCategory=computer)(operatingSystem=*))))
    

    哦,对于 Microsoft Active Directory,您需要经过身份验证的连接才能读取 rootDSE。

    我们在这里讨论更多关于这个问题:http://ldapwiki.willeke.com/wiki/Determine%20LDAP%20Server%20Vendor#section-Determine+LDAP+Server+Vendor-ActiveDirectory

    -吉姆

    【讨论】:

      猜你喜欢
      • 2015-05-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多