Gets the replication filter defined for an eDirectory server.
#include <ldapx.h>
int ldap_get_replication_filter (
LDAP *ld,
char *serverDN,
char **filter);
(IN) Points to the handle for the LDAP session.
(IN) Points to the distinguished name of the server from which to read the replication filter.
(OUT) Points to the address of the filter. For the format, see Section 6.6, Replication Filters. The returned filter must be freed by calling the ldapx_memfree function.
|
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 |
|
0x59 |
LDAP_PARAM_ERROR |
|
0x5A |
LDAP_NO_MEMORY |
|
0x5C |
LDAP_NOT_SUPPORTED |
|
Non-zero |
Non-zero values indicate errors. See |
An eDirectory server can only have one replication filter, and that filter is used for all filtered replicas on the server.
NDS eDirectory 8.5 and above supports filtered replicas. The extension to get and set the replication filter is not available until NDS 8.5 SP1.
The requestName is set to the OID (2.16.840.1.113719.1.27.100.37) and the requestValue is a BER encoding of the following:
RequestBer
serverName LDAPDN
The responseName is set to the OID (2.16.840.1.113719.1.27.100.38) and the responseValue is a BER encoding of the following:
ResponseBer
SEQUENCE of SEQUENCE {
classname OCTET STRING
SEQUENCE of ATTRIBUTES
}
where
ATTRIBUTES:: OCTET STRING