6.7 Replica Types

The replica types identify the type of replica and are defined in the REPLICA_TYPE typedef enumeration in the ldapx.h file. Replica type determines the types of client operations that can be performed on the replica.

Table 6-6 Replica Types

Flag Name

C Value

Meaning

LDAP_RT_MASTER

0

Identifies this replica as the master replica of the partition. Entries can be modified; partition operations can be performed.

LDAP_RT_SECONDARY

1

Identifies this replica as a secondary replica of the partition. Secondary replicas are Read/Write replicas and entries can be modified.

LDAP_RT_READONLY

2

Identifies the replica as a Read-Only replica. Only the eDirectory synchronization processes can modify the information on this replica.

LDAP_RT_SUBREF

3

Identifies the replica as a subordinate reference. eDirectory automatically adds these replicas to a server when the server does not contain replicas of all child partitions. Only eDirectory can modify information on this replica.

LDAP_RT_SPARSE_WRITE

4

Identifies the replica as a Read/Write replica with sparse data. It is configured to contain only specified object types and attributes.

LDAP_RT_SPARSE_READ

5

Identifies the replica as a Read-Only replica with sparse data. It is configured to contain only specified object types and attributes.

LDAP_RT_COUNT

6

Identifies the total number of replica types that have been defined.