Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

3.2.4.22.2 LDAP Bind

This task accepts as input the following:

  • DomainControllerBindTarget: the name of the domain controller to bind to

  • AccountNameForBind: the account name used for authentication on the bind

  • PasswordForBind: the password used to authenticate the bind

  • Encrypt: specifies whether to set LDAP_OPT_ENCRYPT to LDAP_OPT_ON on the returned connection

  • DisallowReferrals: specifies whether to set LDAP_OPT_REFERRALS to LDAP_OPT_OFF on the returned connection

Upon success, this task returns the following:

  • NewADConnection: an ADCONNECTION_HANDLE ([MS-DTYP]).

  1. The server invokes the "Initializing an ADConnection" task of [MS-ADSO] section 6.2.6.1.1 with the following parameters:

    • TaskInputTargetName: DomainControllerBindTarget

    • TaskInputPortNumber: 389

    Upon success, the result is stored in NewADConnection.

  2. The server invokes the "Setting an LDAP option on an ADConnection" task ([MS-ADSO] section 6.2.6.1.2) with the following parameters:

    • TaskInputADConnection: NewADConnection

    • TaskInputOptionName: LDAP_OPT_AUTH_INFO

    • TaskInputOptionValue:

  3. The server invokes the "Setting an LDAP option on an ADConnection" task ([MS-ADSO] section 6.2.6.1.2) with the following parameters:

    • TaskInputADConnection: NewADConnection

    • TaskInputOptionName: LDAP_OPT_AREC_EXCLUSIVE

    • TaskInputOptionValue: TRUE

  4. If Encrypt is equal to TRUE, the server invokes the "Setting an LDAP option on an ADConnection" task ([MS-ADSO] section 6.2.6.1.2) with the following parameters:

    • TaskInputADConnection: NewADConnection

    • TaskInputOptionName: LDAP_OPT_ENCRYPT

    • TaskInputOptionValue: LDAP_OPT_ON

  5. If DisallowReferrals is equal to TRUE, the server invokes the "Setting an LDAP option on an ADConnection" task ([MS-ADSO] section 6.2.6.1.2) with the following parameters:

    • TaskInputADConnection: NewADConnection

    • TaskInputOptionName: LDAP_OPT_REFERRALS

    • TaskInputOptionValue: LDAP_OPT_OFF

  6. The server invokes the "Establishing an ADConnection" task ([MS-ADSO] section 6.2.6.1.3) with the TaskInputADConnection parameter set to NewADConnection.

  7. The server invokes the "Performing an LDAP Bind on an ADConnection" task ([MS-ADSO] section 6.2.6.1.4) with the TaskInputADConnection parameter set to NewADConnection.

  8. Upon success, NewADConnection is returned to the caller. Otherwise, an error is returned.

 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.