Requests that a specified replica on a specified server receive all updates.
#include <ldapx.h> int ldap_receive_all_updates ( LDAP *ld, char *partitionRoot, char *toServerDN, char *fromServerDN);
(IN) Points to the handle for the LDAP session.
(IN) Points to the distinguished name, in LDAP format, of the replica that receives the updates.
(IN) Points to the distinguished name, in LDAP format, of the server holding the replica to be updated.
(IN) Points to distinguished name, in LDAP format, of the server from which the updates are sent. Not currently used.
0x00 |
LDAP_SUCCESS |
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 |
A replica's distinguished name is the distinguished name of the replica's root container, called the partition root in eDirectory.
In NDS 7.x and above, updates can come from any server that holds a replica of the partition; therefore, eDirectory does not currently use the fromServerDN parameter to specify which server should send the updates.
Each ld is associated with a particular server. eDirectory uses the ld rather than the toServerDN parameter to specify the server with the replica that needs updating.
For sample code, see recvupd.c.
The requestName is set to the OID (2.16.840.1.113719.1.27.100.21) and the requestValue is a BER encoding of the following:
RequestBer partitionRoot LDAPDN toServerDN LDAPDN fromServerDN LDAPDN
The responseName is set to the OID (2.16.840.1.113719.1.27.100.22) and the responseValue has no value.
ResponseBer NULL