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 |
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:
Let adConnection be the ADConnection instance in ADCList referred to by TaskInputADConnection.
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.
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.
Set adConnection.primaryConnection to NULL.
Set adConnection.referralConnections to NULL.
Remove adConnection from ADCList.