使用单个查询在“配置”和“域容器”中查询Active Directory。 [英] Query Active Directory In Both The Configuration and Domain Contaners with a single query.

查看:90
本文介绍了使用单个查询在“配置”和“域容器”中查询Active Directory。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我想同时在域容器和配置容器中查询Active Directory。  如果我将搜索根指定为:DC = domain,DC = com,则不包括配置 仅包含域树。 
为了查询配置容器,我必须明确指定CN = Configuration,DC = domain,DC = com

I would like to query Active Directory in Both the Domain Container and the Configuration Container at the same time.   If I specify the Search Root as: DC=domain, DC=com the configuration is not included only the Domain Tree is included.  In order to query the configuration container I have to explicitly specify CN=Configuration, DC=domain, DC=com

是否有"特殊"消息可以使用的搜索根将包括两者?

Is there a "special" search root that can be used the will include both?

推荐答案

LDAP中唯一没有特殊的根是RootDSE,它将返回有关可查询的命名空间的目录的元数据。您应该将命名空间视为数据库的类似物,这是您进行的任何LDAP查询
的最终根。

No the only special root in LDAP is the RootDSE which will return the Metadata about the directory in regards to which namespaces are available to query. You should think of a namespace as analogues to a database this is the ultimate root for any LDAP query you make.

为什么你需要同时查询它们?如果你真的需要使用多个线程并结合结果,这些命名空间包含不同的对象。

Why do you need to do query them at the same time ? those namespaces contain different objects anyway if you really need to do it use multiple threads and combine the results.

干杯

Glen

Cheers
Glen


这篇关于使用单个查询在“配置”和“域容器”中查询Active Directory。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆