Creating the Supplier Bind DN Entry
The supplier bind DN must meet the following criteria:
- It must be unique.
- It must be created on the consumer server (or hub) and not on the supplier server.
- It must correspond to an actual entry on the consumer server.
- It must be created on every server that receives updates from another server.
- It must not be part of the replicated database for security reasons.
- It must be defined in the replication agreement on the supplier server.
cn=Replication Manager,cn=config
can be created under the cn=config
tree on the consumer server. This would be the supplier bind DN that all supplier servers would use to bind to the consumer to perform replication operations.NOTE
Avoid creating simple entries under the
cn=config
entry in the dse.ldif
file. The cn=cn=config
entry in the simple, flat dse.ldif
configuration file is not stored in the same highly scalable database as regular entries. As a result, if many entries, and particularly entries that are likely to be updated frequently, are stored under cn=config
, performance will suffer. However, although Red Hat recommends not storing simple user entries under cn=config
for performance reasons, it can be useful to store special user entries such as the Directory Manager entry or replication manager (supplier bind DN) entry undercn=config
since this centralizes configuration information.- Stop the Directory Server. If the server is not stopped, the changes to the
dse.ldif
file will not be saved. SeeSection 1.3, “Starting and Stopping Servers” for more information on stopping the server. - Create a new entry, such as
cn=replication manager,cn=config
, in thedse.ldif
file. - Specify a
userPassword
attribute-value pair. - If password expiration policy is enabled or ever will be enabled, disable it on the replication manager entry to prevent replication from failing due to passwords expiring. To disable the password expiration policy on the
userPassword
attribute, add thepasswordExpirationTime
attribute with a value of20380119031407Z
, which means that the password will never expire. - Restart the Directory Server. See Section 1.3, “Starting and Stopping Servers” for more information on starting the server.
dn: cn=replication manager,cn=config objectClass: inetorgperson objectClass: person objectClass: top cn: replication manager sn: RM userPassword: password passwordExpirationTime: 20380119031407ZWhen configuring a replica as a consumer, use the DN of this entry to define the supplier bind DN.
Configuring Single-Master Replication
- Specify the supplier settings for the server.
- In the Directory Server Console, select the Configuration tab.
- In the navigation tree, select the Replication folder.
- In the right-hand side of the window, select the Supplier Settings tab.
- Check the Enable Changelog checkbox.This activates all of the fields in the pane below that were previously grayed out.
- Specify a changelog by clicking the Use default button, or click the Browse button to display a file selector.
- Set the changelog parameters for the number and age of the log files.Clear the unlimited checkboxes to specify different values.
- Click Save.
- Specify the replication settings required for a read-write replica.
- In the navigation tree on the Configuration tab, expand the Replication node, and highlight the database to replicate.The Replica Settings tab opens in the right-hand side of the window.
- Check the Enable Replica checkbox.
- In the Replica Role section, select the Single Master radio button.
- In the Common Settings section, specify a Replica ID, which is an integer betweenThe replica ID must be unique for a given suffix, different from any other ID used for read-write replicas on this server and on other servers.
1
and65534
, inclusive. - In the Common Settings section, specify a purge delay in the Purge delay field.The purge delay is how often the state information stored in the replicated entries is deleted.
- Click Save.
- Create the database for the read-only replica if it does not exist. See Section 3.1.1, “Creating Suffixes” for instructions on creating suffixes.
- Create the entry for the supplier bind DN on the consumer server if it does not exist. The supplier bind DN is the special entry that the supplier will use to bind to the consumer. This is described in Section 8.3, “Creating the Supplier Bind DN Entry”.
- Specify the replication settings required for a read-only replica.
- In the Directory Server Console, select the Configuration tab.
- In the navigation tree, expand the Replication folder, and highlight the replica database.The Replica Settings tab for that database opens in the right-hand side of the window.
- Check the Enable Replica checkbox.
- In the Replica Role section, select the Dedicated Consumer radio button.
- In the Common Settings section, specify a purge delay in the Purge delay field.This option indicates how often the state information stored in the replicated entries is purged.
- In the Update Settings section, specify the bind DN that the supplier will use to bind to the replica. Enter the supplier bind DN in the Enter a new Supplier DN field, and click Add. The supplier bind DN appears in the Current Supplier DNs list.The supplier bind DN should be the entry created in step 2. The supplier bind DN is a privileged user because it is not subject to access control.
NOTE
There can be multiple supplier bind DNs per consumer but only one supplier DN per replication agreement. - Specify the URL for any supplier servers to which to refer updates.By default, all updates are first referred to the supplier servers that are specified here. If no suppliers are set here, updates are referred to the supplier servers that have a replication agreement that includes the current replica.
Automatic referrals assume that clients bind over a regular connection; this has a URL in the formldap://
hostname:
port. For clients to bind to the supplier using SSL, use this field to specify a referral of the formldaps://
hostname:
port, where thes
inldaps
indicates a secure connection.
- Click Save.
Create one replication agreement for each read-only replica. For example, in the scenario illustrated in Figure 8.1, “Single-Master Replication”, server A has two replication agreements, one for server B and one for server C.
- In the navigation tree of the Configuration tab, right-click the database to replicate, and selectNew Replication Agreement.Alternatively, highlight the database, and select New Replication Agreement from the Object menu to start theReplication Agreement Wizard.
- In the first screen, fill in a name and description for the replication agreement, and hit Next.
- In the Source and Destination screen, fill in the URL for the consumer and the supplier bind DN and password on that consumer. If the target server is not available, hit in other to fill in the information manually.Hit Next.
- Unless there is more than one instance of Directory Server configured, by default, there are no consumers available in the drop-down menu.
- The port listed is the non-SSL port, even if the Directory Server instance is configured to run over SSL. This port number is used only for identification of the Directory Server instance in the Console; it does not specify the actual port number or protocol that is used for replication.
- If SSL is enabled on the servers, it is possible to select the Using encrypted SSL connection radio button for SSL client authentication. Otherwise, fill in the supplier bind DN and password.
NOTE
If attribute encryption is enabled, a secure connection must be used for the encrypted attributes to be replicated.
- Fractional replication controls which entry attributes are replicated between servers. By default, all attributes are replicated. To select attributes that will not be replicated to the consumer, check the Enable Fractional Replicationcheckbox. Then, highlight the attribute (or attributes) in the Included column on the right, and click Remove. All attributes that will not be replicated are listed in the Excluded column on the left, as well as in the summary the replication agreement is complete.
NOTE
To safeguard against potential integrity problems, the consumer in fractional replication must be a dedicated consumer, not a multi-master supplier or hub. This is not enforced at the time the replication agreement is made, but replication will fail if the consumer is not a read-only replica. - Set the schedule for when replication runs. By default, replication runs continually.Hit Next.
- Set when the consumer is initialized. Initializing a consumer manually copies all data over from the supplier to the consumer. The default is to create an initialization file (an LDIF of all supplier data) so that the consumer can be initialized later. It is also possible to initialize the consumer as soon as the replication agreement is completed or not at all. For information on initializing consumers, see Section 8.10, “Initializing Consumers”.Hit Next.
NOTE
Replication will not begin until the consumer is initialized. - The final screen shows the settings for the replication agreement, as it will be included in the
dse.ldif
file. HitDone to save the agreement.
No comments:
Post a Comment