--On Tuesday, March 16, 2021 5:40 PM +0100 Benjamin Renard
<brenard(a)easter-eggs.com> wrote:
-> 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
I would generally advise using slapcat/slapadd -b "base" rather -n as to
avoid assumptions about database ordering. I generally advise only using
-n for the config db (-n 0).
Regards,
Quanah
--
Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<
http://www.symas.com>