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

Restrictions on Schema Extension

· 52CE 我爱测

In order to reduce the possibility of schema changes by one application breaking other applications and to maintain schema consistency, Active Directory Domain Services enforce restrictions on the type of schema changes that an application or user is allowed to make.

In order to reduce the possibility of schema changes by one application breaking other applications and to maintain schema consistency, Active Directory Domain Services enforce restrictions on the type of schema changes that an application or user is allowed to make.

The restrictions are imposed only on modification of existing schema objects. The schema is categorized into two categories. The schema objects that ship with Windows 2000 in the base schema belong to Category 1. Any schema objects added later by other applications or users through dynamic schema extension belong to Category 2. The category of a schema object can be determined by the 0x10 bit set in the systemFlags attribute on the classSchema object. This bit is only set on Category 1 objects, and cannot be altered, nor can it be set on any Category 2 object.

The systemFlags attribute is used internally by Active Directory Domain Services to identify special characteristics of "infrastructure" objects in the base schema. In addition to identifying Category 1 objects, systemFlags controls whether an object can be moved, deleted, or renamed. These operations are prevented for objects that Windows 2000 depends on to run.

On any schema objects, Category 1 or 2, Active Directory Domain Services impose the following restrictions:

  • You cannot add a new mustContain to a class (directly or through inheritance by adding an auxiliary class).
  • You cannot delete any mustContain of the class (directly or through inheritance).

In addition, the following additional restrictions are imposed on Category 1 schema objects:

  • You cannot change the following attributes of a Category 1 attribute:

    • rangeLower and rangeUpper (value range).
    • attributeSecurityGuid (determines which property set the attribute belongs in, if any).
  • You cannot change the defaultObjectCategory of a Category 1 class.

  • You cannot change the objectCategory of any instance of a Category 1 class.

  • You cannot make a Category 1 class or attribute defunct.

  • You cannot change the lDAPDisplayName of a Category 1 class or attribute.

  • You cannot rename a Category 1 class or attribute.

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)

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

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