LDAP_PREPARE_TRANSACTION

Use the LDAP_PREPARE_TRANSACTION API or LDAP routine to call a prepare transaction request.

  • ldap_prepare_transaction
  • ldap_prepare_transaction_s

Synopsis

#include ldap.h


int ldap_prepare_transaction(
       LDAP           *ld,
       string         tran_id,
       LDAPControl    **serverctrls,
       LDAPControl    **clientctrls,
       int            *msgidp)

int ldap_prepare_transaction_s( 
       LDAP           *ld,
       string         tran_id,
       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 a prepare 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 a prepare 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