大网数据广告活动
域与目录服务

Deciding Where to Search

· 52CE 我爱测

This topic explains the different searches that can be performed in Active Directory Domain Services.

This topic explains the different searches that can be performed in Active Directory Domain Services.

All searches are performed in one of the following naming contexts:

  • Domain, including application directory partitions
  • Schema container
  • Configuration container
  • Global catalog

Searching a Domain

Domains contain most of the highly used objects such as users, contacts, groups, organizational units, computers, and so on. Most queries will search a domain. For more information about searching a domain, see Searching Domain Contents.

Searching the Schema Container

The schema container contains the classSchema and attributeSchema objects that provide the formal definition of every class and attribute that can exist in Active Directory Domain Services. To search for objects in the schema container, bind to the schema container on any domain controller. The schema container is available on all domain controllers. The distinguished name of the schema container is obtained from the schemaNamingContext attribute from rootDSE. For more information about rootDSE and the schemaNamingContext attribute, see Serverless Binding and RootDSE.

For more information about reading from the schema or abstract schema container, see Guidelines for Binding to the Schema.

Searching the Configuration Container

The configuration container contains configuration information, such as sites, services and display specifiers, for the entire forest. To search for objects in the configuration container, bind to the configuration container on any domain controller. The configuration container is available on all domain controllers. The distinguished name of the configuration container is obtained from the configurationNamingContext attribute from rootDSE. For more information about rootDSE and the configurationNamingContext attribute, see Serverless Binding and RootDSE.

Searching the Global Catalog

The global catalog holds a replica of every object in Active Directory Domain Services, but with only a small number of their attributes. The attributes in the global catalog are those most frequently used in search operations, such as a user's first and last names, login names, and so on. For more information about searching the global catalog, see Searching the Global Catalog.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。