This article is a mirror article of machine translation, please click here to jump to the original article.

View: 6032|Reply: 0

OpenLDAP:Failed to start OpenLDAP Server Daemon.

[Copy link]
Posted on 6/21/2020 10:20:17 PM | | | |
Start the openldap command as follows:
The error is as follows:

Job for slapd.service failed because the control process exited with error code. See "systemctl status slapd.service" and "journalctl -xe" for details.

View detailed errors:


[root@VM_0_9_centos ~]# systemctl status slapd.service
● slapd.service - OpenLDAP Server Daemon
   Loaded: loaded (/usr/lib/systemd/system/slapd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2020-06-21 22:09:42 CST; 1min 18s ago
     Docs: man:slapd
           man:slapd-config
           man:slapd-hdb
           man:slapd-mdb
           file:///usr/share/doc/openldap-servers/guide.html
  Process: 29861 ExecStart=/usr/sbin/slapd -u ldap -h ${SLAPD_URLS} $SLAPD_OPTIONS (code=exited, status=1/FAILURE)
  Process: 29828 ExecStartPre=/usr/libexec/openldap/check-config.sh (code=exited, status=0/SUCCESS)

Jun 21 22:09:41 VM_0_9_centos runuser[29851]: pam_unix(runuser:session): session opened for user lda... d=0)
Jun 21 22:09:41 VM_0_9_centos runuser[29853]: pam_unix(runuser:session): session opened for user lda... d=0)
Jun 21 22:09:41 VM_0_9_centos runuser[29855]: pam_unix(runuser:session): session opened for user lda... d=0)
Jun 21 22:09:41 VM_0_9_centos runuser[29857]: pam_unix(runuser:session): session opened for user lda... d=0)
Jun 21 22:09:41 VM_0_9_centos runuser[29859]: pam_unix(runuser:session): session opened for user lda... d=0)
Jun 21 22:09:42 VM_0_9_centos slapd[29861]: @(#) $OpenLDAP: slapd 2.4.44 (Jan 29 2019 17:42:45) $
                                                    mockbuild@x86-01.bsys.centos.org:/builddir/build... lapd
Jun 21 22:09:42 VM_0_9_centos systemd[1]: slapd.service: control process exited, code=exited status=1
Jun 21 22:09:42 VM_0_9_centos systemd[1]: Failed to start OpenLDAP Server Daemon.
Jun 21 22:09:42 VM_0_9_centos systemd[1]: Unit slapd.service entered failed state.
Jun 21 22:09:42 VM_0_9_centos systemd[1]: slapd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
I have CentOS server version information

CentOS Linux release 7.7.1908 (Core)

Solution 1:

Turn off SELinux

Restart the machine after modifying the configuration.

Start OpenLDAP again and it starts successfully. (The personal test was successful



Solution 2:

Resolve via Start LDAP server in debug mode







Previous:OpenLDAP Series (2) Centos 7 Installation OpenLDAP Tutorial
Next:OpenLDAP Series (3) OpenLDAP commands are explained in detail
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com