Page 1 of 1

I can't start Openldap Service

Posted: 2019/11/04 12:24:55
by Yeicop
Hi Team,

I dont know where is my fault, but I install this application ;

yum -y install openldap compat-openldap openldap-clients openldap-servers openldap-servers-sql openldap-devel

And When i click systemctl start slapd i received this message;

slapd.service - OpenLDAP Server Daemon
Loaded: loaded (/usr/lib/systemd/system/slapd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since lun 2019-11-04 13:16:50 CET; 1min 4s ago
Docs: man:slapd
Process: 3538 ExecStart=/usr/sbin/slapd -u ldap -h ${SLAPD_URLS} $SLAPD_OPTIONS (code=exited, status=1/FAILURE)
Process: 3520 ExecStartPre=/usr/libexec/openldap/ (code=exited, status=0/SUCCESS)

nov 04 13:16:49 systemd[1]: Starting OpenLDAP Server Daemon...
nov 04 13:16:49 runuser[3524]: pam_unix(runuser:session): sessio...)
nov 04 13:16:49 slapd[3538]: @(#) $OpenLDAP: slapd 2.4.44 (Jan 2...$
nov 04 13:16:50 slapd[3538]: ldif_read_file: checksum error on "..."
nov 04 13:16:50 slapd[3538]: ldif_read_file: checksum error on "..."
nov 04 13:16:50 systemd[1]: slapd.service: control process exite...1
nov 04 13:16:50 systemd[1]: Failed to start OpenLDAP Server Daemon.
nov 04 13:16:50 systemd[1]: Unit slapd.service entered failed state.
nov 04 13:16:50 systemd[1]: slapd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

Can you help me please?¿?????

Thanks !!!

Re: I can't start Openldap Service

Posted: 2019/11/04 13:47:43
by TrevorH
Because your terminal was not wide enough to contain all the output and you did not specify systemctl -l, your output is truncated. However, it would appear from the bits of it that can be read, that you ldap database is corrupted ldif_read_file: checksum error on "...". You'll need to find out how to repair that - probably some bdb utility or a dump/restore. Start by rre-running the systemctl with -l so that you can see the rest of the text.