Este conteúdo não está disponível no idioma selecionado.

Chapter 22. Setting up content synchronization using the SyncRepl protocol


To support the SyncRepl protocol according to RFC 4533, Directory Server uses the Content Synchronization plugin. With the Content Synchronization plugin, LDAP servers and clients can use Red Hat Directory Server as a source to synchronize their local database with the changing content of the directory.

To use the SyncRepl protocol, you need to perform the following configurations:

  • On the Directory Server side:

    • Configure the Content Synchronization and Retro Changelog plugins. The Retro Changelog plugin must log the nsuniqueid operational attribute.
    • Optional: Create a new user that your client will use to bind to Directory Server. The new user must have permissions to read the content in the directory. For details, see Adding an LDAP entry using the command line.
  • Configure your client. For example, set the search base for a subtree to synchronize. For further details, see your client’s documentation.

The following procedure configures the Content Synchronization and Retro Changelog plugins by using the command line.

Prerequisites

  • You have root permissions.

Procedure

  1. Verify if the Retro Changelog is enabled:

    # dsconf <instance_name> plugin retro-changelog show
    ...
    nsslapd-pluginEnabled: off

    If the Retro Changelog plugin is disabled, enable it:

    # dsconf <instance_name> plugin retro-changelog enable
    Enabled plugin 'Retro Changelog Plugin'
  2. Add the nsuniqueid operational attribute with the targetUniqueId alias to the Retro Changelog plugin configuration:

    # dsconf <instance_name> plugin retro-changelog add --attribute nsuniqueid:targetUniqueId
    Successfully changed the cn=Retro Changelog Plugin,cn=plugins,cn=config
  3. Optional: Apply the following recommendations to improve performance:

    1. Configure the maximum age of the Retro Changelog entries. For example, set the age to 2 days (2d):

      # dsconf <instance_name> plugin retro-changelog set --max-age 2d
      Successfully changed the cn=Retro Changelog Plugin,cn=plugins,cn=config
    2. If you know which backend or subtree your client accesses to synchronize data, limit the scope of the Retro Changelog plugin. For example, to exclude the cn=marketing,dc=example,dc=com subtree, enter:

      # dsconf <instance_name> plugin retro-changelog set --exclude-suffix "cn=marketing,dc=example,dc=com"
      Successfully changed the cn=Retro Changelog Plugin,cn=plugins,cn=config
  4. Enable the Content Synchronization plugin:

    # dsconf <instance_name> plugin contentsync enable
    Enabled plugin 'Content Synchronization'
  5. Optional: Adjust the ACI to limit who can use the SyncRepl control. By default, Directory Server creates the following access control instruction (ACI) in the oid=1.3.6.1.4.1.4203.1.9.1.1,cn=features,cn=config entry that enables all users to use the SyncRepl protocol:

    aci: (targetattr != "aci")(version 3.0; acl "Sync Request Control";
       allow( read, search ) userdn = "ldap:///all";)

    For details about how to adjust the ACI, see Defining ACI bind rules.

  6. Restart the server:

    # dsctl <instance_name> restart

Now your clients can synchronize data with Directory Server by using the SyncRepl protocol.

Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2026 Red Hat
Voltar ao topo