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

Obtaining a Link ID

· 52CE 我爱测

Starting with Windows Server 2003, it is no longer necessary to request a linkID from Microsoft; there is a process for automatically generating a linkID.

Starting with Windows Server 2003, it is no longer necessary to request a linkID from Microsoft; there is a process for automatically generating a linkID. The system will automatically generate a link ID for a new linked attribute when the attribute's linkID attribute is set to 1.2.840.113556.1.2.50. A back link for this forward link is created by setting the linkID to the attributeID or ldapDisplayName of the forward link. The schema cache must be reloaded after creating the forward link and before creating the back link. Otherwise, the forward link's attributeId or ldapDisplayName will not be found when the back link is created. The schema cache is reloaded on demand, a few minutes after a schema change is made, or when the DC is restarted. Create all forward links, reload the schema cache and then create all back links.

For example, when you have created the new attributes myForwardLinkAttr and myBackLinkAttr, and wish to link them:

Note:
The OIDs in this example are contrived. See Obtaining an Object Identifier from Microsoft for instructions on obtaining OIDs for new attributes.

  1. Set these attributes on the attribute that is to be the forward link:

    ldapDisplayName: myForwardLinkAttr
    OID: 1.2.840.113556.6.1234
    LinkID: 1.2.840.113556.1.2.50
    
  2. Reload the Schema.

  3. Set these attributes on the attribute that is to be the back link:

    ldapDisplayName: myBackLinkAttr
    OID: 1.2.840.113556.6.1235
    LinkID: 1.2.840.113556.6.1234 or myForwardLinkAttr
    

Related topics

Linked Attributes

How to Extend the Schema

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)

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

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