Hello,
I am running OpenLDAP 2.4.47 on Debian 10 for a while and now I enabled the overlay for memberOf. Is there any good option for backup and restore, because slapcat and slapadd aren't working.
Thanks and kind regards Lars
--On Friday, January 29, 2021 12:11 AM +0100 Lars Päßler Lars.Paessler@reril.de wrote:
Hello,
I am running OpenLDAP 2.4.47 on Debian 10 for a while and now I enabled the overlay for memberOf. Is there any good option for backup and restore, because slapcat and slapadd aren't working.
You'll need to provide more info than that. What issues are you having? What are your exact commands? what's the output?
Regards, Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
I backup / restore using commands below. Show us your commands that fails.
# slapcat -n 2 > ldap_`date "+%Y%m%d%H%M"`.ldif # slapcat -b cn=config > ldapconfig_`date "+%Y%m%d%H%M"`.ldif # systemctl stop slapd # mkdir /root/backup/ # mv /etc/openldap/slapd.d/ /root/backup/ # mv /var/lib/ldap/ /root/backup/ # mkdir -m 700 /etc/openldap/slapd.d # mkdir -m 700 /var/lib/ldap # cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB_CONFIG # slapadd -n0 -F /etc/openldap/slapd.d -l ldapconfig_YYYYMMDDHHMM.ldif # chown ldap. -R /etc/openldap/slapd.d # slapadd -l ldap_YYYYMMDDHHMM.ldif # chown ldap. -R /var/lib/ldap # systemctl start slapd
-----Original Message----- From: Lars Päßler Lars.Paessler@reril.de Sent: Friday, January 29, 2021 8:12 AM To: openldap-technical@openldap.org Subject: Backup/Restore Overlays MemberOf
Hello,
I am running OpenLDAP 2.4.47 on Debian 10 for a while and now I enabled the overlay for memberOf. Is there any good option for backup and restore, because slapcat and slapadd aren't working.
Thanks and kind regards Lars
openldap-technical@openldap.org