I can't start Openldap Service

Issues related to applications and software problems
Post Reply
Yeicop
Posts: 1
Joined: 2019/11/04 12:21:08

I can't start Openldap Service

Post by Yeicop » 2019/11/04 12:24:55

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
man:slapd-config
man:slapd-hdb
man:slapd-mdb
file:///usr/share/doc/openldap-servers/guide.html
Process: 3538 ExecStart=/usr/sbin/slapd -u ldap -h ${SLAPD_URLS} $SLAPD_OPTIONS (code=exited, status=1/FAILURE)
Process: 3520 ExecStartPre=/usr/libexec/openldap/check-config.sh (code=exited, status=0/SUCCESS)

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

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

Thanks !!!

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: I can't start Openldap Service

Post by TrevorH » 2019/11/04 13:47:43

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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply