docker-openldap-backup icon indicating copy to clipboard operation
docker-openldap-backup copied to clipboard

Error restoring config

Open lucamaro opened this issue 6 years ago • 1 comments

Hi, I'm having trouble restoring config: every entry add by slapd-restore-config fails with "slapadd: could not add entry...".

After reading documentation and doing some tries I found that /sbin/slapd-restore probably should empty /etc/ldap/slapd.d directory and chown to openldap before executing slapadd.

Am I wrong?

Thank you, Luca

lucamaro avatar Sep 06 '17 20:09 lucamaro

I was unable to get slapd-restore-config or slapd-restore-data to restore properly unless I first deleted all data in the config and data directories. If I ran the deletes first (while the docker container was running by the way which seems very odd to me) and then run the restore commands (via docker exec) I was able to successfully restore both config and data from a backup.

pjroth avatar Nov 22 '19 14:11 pjroth