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

Publishing with Service Connection Points

· 52CE 我爱测

The Active Directory Schema defines a serviceConnectionPoint (SCP) object class to make it easy for a service to publish service-specific data in the directory.

The Active Directory Schema defines a serviceConnectionPoint (SCP) object class to make it easy for a service to publish service-specific data in the directory. Clients of the service use the data in an SCP to locate, connect to, and authenticate an instance of your service.

This section provides an overview of service connection points and code examples that show how a client/service application uses SCPs.

The code example follows these steps to implement service publication with SCPs.

For more information and a code example that performs these steps, see Creating a Service Connection Point.

To create SCPs in the directory at service installation

  1. Bind to the computer object for the host computer on which the service instance is installed.
  2. Create an SCP object as a child of the computer object, specifying the initial values for the attributes of the SCP.
  3. Set access control entries (ACEs) in the security descriptor of the SCP object to enable the service to modify SCP properties at run time.
  4. Cache the objectGUID of the SCP in the registry on the service's host computer.

For more information and a code example that performs these steps, see Updating a Service Connection Point.

To update the SCP attributes at service startup

  1. Retrieve the objectGUID from the registry and use it to bind to the SCP.
  2. Retrieve attributes, such as serviceDNSName and serviceBindingInformation, from the SCP. Compare these values to the current values and update the SCP if necessary.

For more information and a code example that performs these steps, see How Clients Find and Use a Service Connection Point.

To find and use an SCP by a client application

  1. Bind to the Global Catalog and search for objects with a keywords attribute that matches the service's product GUID. Each object found is an instance of the service. Select an instance and retrieve the distinguished name of the SCP.
  2. Use the distinguished name to bind to the SCP.
  3. Retrieve the values of various attributes from the SCP, such as serviceDNSName and serviceBindingInformation. Use these values to connect to and authenticate the service instance.

For more information about what roles can create and update an SCP, see Security Issues for Service Publication.

For more information about where to create an SCP, see Where to Create a Service Connection Point.

For more information about the kind of data to store in an SCP, see Service Connection Point Properties.

For more information about how a service installer and the service work together to maintain current data in an SCP, see Creating and Maintaining a Service Connection Point.

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)

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

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