Aborts the last partition operation on the specified partition.
#include <ldapx.h> int ldap_abort_partition_operation ( LDAP *ld, char *dn, int flags);
(IN) Points to the handle for the LDAP session.
(IN) Points to the distinguished name, in LDAP format, of partition whose current operation should be aborted.
(IN) Set to zero. Not currently used.
0x00 |
LDAP_SUCCESS or no partition operation is pending. |
0x01 |
LDAP_OPERATIONS_ERROR: A string is returned with this error code that indicates the source of the error. |
0x53 |
LDAP_ENCODING_ERROR |
0x5A |
LDAP_NO_MEMORY |
0x5C |
LDAP_NOT_SUPPORTED |
Non-zero |
Non-zero values indicate errors. See |
In eDirectory, partition operations include
Adding, changing, and removing replicas
Joining and splitting partitions
At any given time, only one partition operation is pending. If a partition operation is not pending when this function is called, the function returns LDAP_SUCCESS.
For sample code, see abortpo.c.
The requestName is set to the OID (2.16.840.1.113719.1.27.100.29) and the requestValue is a BER encoding of the following:
RequestBer flags INTEGER dn LDAPDN
The responseName is set to the OID (2.16.840.1.113719.1.27.100.30) and there is no responseValue.
ResponseBer NULL