Ce contenu n'est pas disponible dans la langue sélectionnée.

Chapter 12. Encrypting the replication changelog


Encrypt the replication changelog to increase the security of your instance, in case that an attacker gains access to the file system of your server.

Changelog encryption uses the server’s TLS encryption key and the same PIN to unlock the key. You must either enter the PIN manually upon server startup or use a PIN file.

Directory Server uses randomly generated symmetric cipher keys to encrypt and decrypt the changelog. The server uses a separate key for each configured cipher. These keys are wrapped using the public key from the server’s TLS certificate, and the resulting wrapped key is stored within the server’s configuration files. The effective strength of the attribute encryption is the same as the strength of the server’s TLS key used for wrapping. Without access to the server’s private key and the PIN, it is not possible to recover the symmetric keys from the wrapped copies.

12.1. Encrypting the changelog using the command line

To increase the security in a replication topology, encrypt the changelog on suppliers and hubs. This procedure describes how to enable changelog encryption for the dc=example,dc=com suffix.

Prerequisites

  • The server has TLS encryption enabled.
  • The host is a supplier or hub in a replication topology.

Procedure

  1. Export the changelog, for example, to the /tmp/changelog.ldif file:

    # dsconf <instance_name> replication export-changelog to-ldif -o /tmp/changelog.ldif -r "dc=example,dc=com"
    Copy to Clipboard Toggle word wrap
  2. Enable change log encryption for the dc=example,dc=com suffix:

    # dsconf <instance_name> replication --suffix "dc=example,dc=com" --encrypt
    Copy to Clipboard Toggle word wrap
  3. Import the changelog from the /tmp/changelog.ldif file:

    # dsconf <instance_name> replication import-changelog from-ldif -r "dc=example,dc=com" /tmp/changelog.ldif
    Copy to Clipboard Toggle word wrap
  4. Restart the instance:

    # dsctl <instance_name> restart
    Copy to Clipboard Toggle word wrap

Verification

  1. Make a change in the LDAP directory, such as updating an entry.
  2. Stop the instance:

    # dsctl <instance_name> stop
    Copy to Clipboard Toggle word wrap
  3. List the suffixes and their corresponding databases:

    # dsconf <instance_name> backend suffix list
    dc=example,dc=com (userroot)
    Copy to Clipboard Toggle word wrap

    Note the name of the database for which you enabled changelog encryption.

  4. Enter the following command to display parts of the changelog:

    # dbscan -f /var/lib/dirsrv/slapd-<instance_name>/db/userroot/replication_changelog.db | tail -50
    Copy to Clipboard Toggle word wrap

    If the changelog is encrypted, you see only encrypted data.

  5. Start the instance.

    # dsctl <instance_name> start
    Copy to Clipboard Toggle word wrap
Retour au début
Red Hat logoGithubredditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance. Découvrez nos récentes mises à jour.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez le Blog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

Theme

© 2025 Red Hat