LDAP_OPT_TIMELIMIT 15 Invoke the "Establishing an ADConnection" task ([MS-ADTS] section 7.6.1.3) with the following parameters: TaskInputADConnection: ActiveDirectory_Connection If the TaskReturnStatus returned is not 0, Repeat step 1 with the following modification: TaskInputOptionName: LDAP_OPT_GETDSNAME_FLAGS TaskInputOptionValue: Bitwise OR of the bits A, D and R defined by [MS-NRPC] section 3.5.4.3.1. Repeat step 2. If the TaskReturnStatus returned is not 0, convert it to a 4-byte HRESULT value (errors are specified in section 2.1) by performing the processing rules in section with the following input parameters: InputReturnStatus: TaskReturnStatus InputResultMessage: NULL Return the OutputHRESULT output parameter to the client and exit. Invoke the "Performing an LDAP Bind on an ADConnection" task ([MS-ADTS] section 7.6.1.4) with the following parameter: TaskInputADConnection: ActiveDirectory_Connection If successful, exit. If the returned is not 0, repeat step 1 with this additional option: TaskReturnStatus TaskInputOptionName: LDAP_OPT_AUTH_INFO TaskInputOptionValue: bindMethod: SIMPLE ([MS-ADTS] section 5.1.1.1) name: NULL password: NULL Invoke the "Performing an LDAP Bind on an ADConnection" task ([MS-ADTS] section 7.6.1.4) with the following parameters: TaskInputADConnection: ActiveDirectory_Connection If successful, exit. If the TaskReturnStatus returned is not 0, repeat step 1 with this additional option: TaskInputOptionName: LDAP_OPT_PROTOCOL_VERSION TaskInputOptionValue: 2
LDAP_OPT_TIMELIMIT 15 Invoke the "Establishing an ADConnection" task ([MS-ADTS] section 7.6.1.3) with the following parameters: TaskInputADConnection: ActiveDirectory_Connection If the TaskReturnStatus returned is not 0, Repeat step 1 with the following modification: TaskInputOptionName: LDAP_OPT_GETDSNAME_FLAGS TaskInputOptionValue: Bitwise OR of the bits A, D and R defined by [MS-NRPC] section 3.5.4.3.1. Repeat step 2. If the TaskReturnStatus returned is not 0, convert it to a 4-byte HRESULT value (errors are specified in section 2.1) by performing the processing rules in section with the following input parameters: InputReturnStatus: TaskReturnStatus InputResultMessage: NULL Return the OutputHRESULT output parameter to the client and exit. Invoke the "Performing an LDAP Bind on an ADConnection" task ([MS-ADTS] section 7.6.1.4) with the following parameter: TaskInputADConnection: ActiveDirectory_Connection If successful, exit. If the TaskReturnStatus returned is not 0, repeat step 1 with this additional option: TaskInputOptionName: LDAP_OPT_AUTH_INFO TaskInputOptionValue: bindMethod: SIMPLE ([MS-ADTS] section 5.1.1.1) name: NULL password: NULL Invoke the "Performing an LDAP Bind on an ADConnection" task ([MS-ADTS] section 7.6.1.4) with the following parameters: TaskInputADConnection: ActiveDirectory_Connection If successful, exit. If the TaskReturnStatus returned is not 0, repeat step 1 with this additional option: TaskInputOptionName: LDAP_OPT_PROTOCOL_VERSION TaskInputOptionValue: 2