Partager via


7.6.1.5 Performing an LDAP Unbind on an ADConnection

This task closes an ADConnection's primaryConnection and any referralConnections.

The parameters for this task are as follows:

Name

Type

Description

Optional

TaskInputADConnection

ADCONNECTION_HANDLE

An ADCONNECTION_HANDLE ([MS-DTYP] section 2.2.2) that refers to an initialized ADConnection that the client will close.

No

This task does not return any results.

The task performs the following actions:

  1. Let adConnection be the ADConnection instance in ADCList referred to by TaskInputADConnection.

  2. Invoke the Performing an LDAP Unbind Against a Directory Server (section 7.6.2.4) task with the following parameters: TaskInputConnectionInfo is set to adConnection.primaryConnection.

  3. For each connectionInfo in adConnection.referralConnections:

    • Invoke the Performing an LDAP Unbind Against a Directory Server (section 7.6.2.4) task with the following parameters: TaskInputConnectionInfo is set to connectionInfo.

  4. Set adConnection.primaryConnection to NULL.

  5. Set adConnection.referralConnections to NULL.

  6. Remove adConnection from ADCList.