Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error restoring config #4

Open
lucamaro opened this issue Sep 6, 2017 · 1 comment
Open

Error restoring config #4

lucamaro opened this issue Sep 6, 2017 · 1 comment

Comments

@lucamaro
Copy link

lucamaro commented Sep 6, 2017

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

@pjroth
Copy link

pjroth commented Nov 22, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants