LDAP_END_TRANSACTION
Use the LDAP_END_TRANSACTION API or LDAP
routine to call an end transaction request.
- ldap_end_transaction
- ldap_end_transaction_s
Synopsis
#include ldap.h
int ldap_end_transaction(
LDAP *ld,
string tran_id,
int abort,
LDAPControl **serverctrls,
LDAPControl **clientctrls,
int *msgidp)
int ldap_end_transaction_s(
LDAP *ld,
string tran_id,
int abort,
LDAPControl **serverctrls,
LDAPControl **clientctrls)Input parameters
- ld
- Specifies the LDAP pointer that is returned by a previous call to ldap_init(), ldap_ssl_init(), or ldap_open().
- tran_id
- Specifies the transaction ID of the end transaction.
- abort
- Specifies the request type that is sent to the transaction. The
request type can be one from the following list:
- 0 – commit transaction
- 1 – abort transaction
- serverctrls
- Specifies a list of LDAP server controls.
- clientctrls
- Specifies a list of LDAP client controls.
Output parameters
- msgidp
- This parameter contains the message ID of the request.
Usage
This API routine is used to initiate an end transaction request against the server.
Errors
This routine returns an LDAP error code if the operation is unsuccessful.
See also
ldap_start_transaction, ldap_start_transaction_s, ldap_prepare_transaction, ldap_prepare_transaction_s, ldap_end_transaction, ldap_end_transaction_s, ldap_get_tran_id, ldap_create_transaction_control