Hi,

Le 16/03/2021 à 14:37, Клеусов Владимир Сергеевич a écrit :
Hi,

I have multi-master replication configured. https://pastebin.com/vYKsa9VY <https://pastebin.com/vYKsa9VY>  I want to replace ldap3. Please tell me how to do this ? I mean, how does the new server synchronize the current ldap database?
You just have to deploy your new server with an empty database (or a database restored with a recent dump from another server, see slapcat / slapadd). If need, adjust the olcSyncRepl line of this new host on other hosts.

So :
 - install slapd on new host
- prepare your slapd configuration (schemas, modules, databases configurations) without syncrepl. You could rsync slapd.d directory from another host and adjust host RID on cn=config / olcServerID. Be sure to adjust CRC in LDIF file if you change it manually.
 - restore your database with a dump from another host :
  -> on ldap1 :
    slapcat -n 1 > /tmp/ldif
    scp /tmp/ldif ldap3:/tmp/
  -> on ldap3 :
    rm -f /var/lib/ldap/*
    slapadd -n 1 -q -l /tmp/ldif
    chown openldap: -R /var/lib/ldap/
 - start slapd on ldap3

--
Benjamin Renard                  -                   Easter-eggs
44-46 rue de l'Ouest  -  75014 Paris   -   France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37     -    Fax: +33 (0) 1 43 35 00 76
mailto:[email protected]   -    http://www.easter-eggs.com
  • Replacing the server du... Клеусов Владимир Сергеевич
    • Re: Replacing the ... Benjamin Renard
      • Re: Replacing ... Quanah Gibson-Mount
        • Re: Replac... Benjamin Renard
          • Re: Re... Клеусов Владимир Сергеевич
            • R... Quanah Gibson-Mount
              • ... Клеусов Владимир Сергеевич
                • ... Quanah Gibson-Mount
                • ... Клеусов Владимир Сергеевич
                • ... Quanah Gibson-Mount
                • ... Клеусов Владимир Сергеевич
                • ... Quanah Gibson-Mount

Reply via email to