Compartilhar via


7.6.2.4 Performing an LDAP Unbind Against a Directory Server

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

The parameters for this task are as follows:

Name

Type

Description

Optional

TaskInputConnectionInfo

ConnectionInfo

An initialized ConnectionInfo that the client will close.

No

This task does not return any results.

The task performs the following actions:

  1. Let unbindRequest be an LDAPMessage for an unbind request. See [RFC2251] section 4.3, Unbind Operation.

  2. Let ldapRequest be a freshly constructed instance of the LDAPRequest ADM structure with the values in the ADM initialized to their default values.

  3. ldapRequest.requestMessage is set to unbindRequest.

  4. Invoke the Performing an LDAP Operation Against a Directory Server (section 7.6.2.5) task with the following parameters: TaskInputConnectionInfo is set to the TaskInputConnectionInfo that was passed to this task and TaskInputRequestMessage is set to ldapRequest.

  5. The client closes the TCP connection TaskInputConnectionInfo.networkConnection.