Job for slapd.service failed because the control process exited with error code?
Solution 1:
check-config.sh[2894]: Read/write permissions for DB file '/var/lib/ldap/__db.003' are required.
slapd runs as ldap
user by default, if you attempted to start it (or loaded ldif etc..) as root user, it'd create files with incorrect permission. Try chown -R ldap.ldap /var/lib/ldap
to fix the permissions and start the service.
Solution 2:
I also facing the same problem but I have resolved with below command:
setenforce 0
getenforce
If you want to persist it:
vi /etc/selinux/config
Change this parameter SELINUX=enforcing
to SELINUX=permissive
Solution 3:
-
Disable your SELINUX.
-
Install the required certificates specified in the file:
olcDatabase={2}hdb.ldif