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