1

Topic: after updating with yum update, openldap wont start

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9 OPENLDAP edition.
- Deployed with iRedMail Easy or the downloadable installer? no
- Linux/BSD distribution name and version: centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello,

after updating with yum update, openldap wont start



[root@mail ~]# systemctl status slapd
● slapd.service - OpenLDAP Server Daemon
   Loaded: loaded (/usr/lib/systemd/system/slapd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2020-01-30 11:22:25 UTC; 31min ago
     Docs: man:slapd
           man:slapd-config
           man:slapd-hdb
           man:slapd-mdb
           file:///usr/share/doc/openldap-servers/guide.html
  Process: 2251 ExecStart=/usr/sbin/slapd -u ldap -h ${SLAPD_URLS} $SLAPD_OPTIONS (code=exited, status=1/FAILURE)
  Process: 2243 ExecStartPre=/usr/libexec/openldap/check-config.sh (code=exited, status=0/SUCCESS)

Jan 30 11:22:25 mail.tyseca.com systemd[1]: Starting OpenLDAP Server Daemon...
Jan 30 11:22:25 mail.tyseca.com check-config.sh[2243]: Warning: Usage of a configuration file is obsolete!
Jan 30 11:22:25 mail.tyseca.com runuser[2246]: pam_unix(runuser:session): session opened for user ldap by (uid=0)
Jan 30 11:22:25 mail.tyseca.com slapd[2251]: @(#) $OpenLDAP: slapd 2.4.44 (Jan 29 2019 17:42:45) $
                                                     mockbuild@x86-01.bsys.centos.org:/builddir/build/BUILD/openldap-2.4.44/openldap-2.4.44/servers/slapd
Jan 30 11:22:25 mail.tyseca.com systemd[1]: slapd.service: control process exited, code=exited status=1
Jan 30 11:22:25 mail.tyseca.com systemd[1]: Failed to start OpenLDAP Server Daemon.
Jan 30 11:22:25 mail.tyseca.com systemd[1]: Unit slapd.service entered failed state.
Jan 30 11:22:25 mail.tyseca.com systemd[1]: slapd.service failed.

any solution?

thanks in advance

2

Re: after updating with yum update, openldap wont start

Try to run OpenLDAP with debug mode turned on, show us the last 20 lines of command output:

slapd -u ldap -g ldap -f /etc/openldap/slapd.conf -d -1

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

3 (edited by newzen 2020-01-31 02:29:01)

Re: after updating with yum update, openldap wont start

thanks for response ZhangHuangbin,

after run ldap on debug mode i found the problem. Certificates for slapd, not found. Generated and start without any problem.

thanks for supporting