From b2a2a05598468239af61f0fcb7492b9165dcf8b4 Mon Sep 17 00:00:00 2001 From: zamentur Date: Mon, 8 Feb 2016 22:41:55 +0100 Subject: [PATCH] [fix] Slapd.d directory was empty after restore --- data/hooks/restore/05-conf_ldap | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/hooks/restore/05-conf_ldap b/data/hooks/restore/05-conf_ldap index 22867e6c..c4102035 100644 --- a/data/hooks/restore/05-conf_ldap +++ b/data/hooks/restore/05-conf_ldap @@ -23,7 +23,8 @@ else # Regenerate the configuration rm -rf /etc/ldap/slapd.d/* - slaptest -u -f /etc/ldap/slapd.conf -F /etc/ldap/slapd.d + slaptest -f /etc/ldap/slapd.conf -F /etc/ldap/slapd.d + chown -R openldap:openldap /etc/ldap/slapd.d cp -rfp /var/lib/ldap.old/DB_CONFIG /var/lib/ldap # Import the database