slapd.service not enabled/failed after upgrade from SLES 11 SP4 to SLES 15
This document (000019711) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server SLES 15 SP1
SUSE Linux Enterprise Server SLES 15
SUSE Linux Enterprise Server SLES 11 SP4
Situation
When checking for the slapd.service it is not enabled at all.
Other related services that do use the local LDAP server are also not starting or not working properly, like postfix, dhcpd, bind ,samba etc.
Resolution
modulepath /usr/lib64/openldap moduleload back_mdb.la moduleload back_hdb.la moduleload back_bdb.la
cd /etc/openldap slaptest -f slapd.conf.fixmodule -F slapd.d
chgrp ldap /var/run/slapd chmod g+w /var/run/slapd rm /var/run/slapd/.*4. enable and start slapd
systemctl enable slapd.service systemctl start slapd.service
dn: cn=config changetype: modify replace: olcArgsFile olcArgsFile: /run/slapd/slapd.args - replace: olcPidFile olcPidFile: /run/slapd/slapd.pid
ldapmodify -Y external -H ldapi:// -f fix-statefiles.ldif7. restart slapd
systemctl restart slapd.service8. verify slapd is running
systemctl status slapd.service
Cause
As such a change to the configuration is needed to load the database modules after the migration. In addition, the location for the PID and ARGS file has changed on newer SLES version from /var to /run while the old location is still configured and needs to be changed to the new location.
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000019711
- Creation Date: 15-Sep-2020
- Modified Date:25-Sep-2020
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com