架构师_程序员

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 76|回复: 0

OpenLDAP:Failed to start OpenLDAP Server Daemon.

[复制链接]
发表于 2020-6-21 22:20:17 | 显示全部楼层
启动 openldap 命令如下:
报错如下:

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

查看详细错误:


[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.
我CentOS服务器版本信息

CentOS Linux release 7.7.1908 (Core)

解决办法一:

关闭SELinux

修改配置后重启机器。

再次启动OpenLDAP,启动成功。(亲测成功

QQ截图20200621222007.jpg

解决办法二:

通过Start LDAP server in debug mode解决







上一篇:OpenLDAP 系列(二)Centos 7 安装 OpenLDAP 教程
下一篇:OpenLDAP 系列(三)OpenLDAP 命令详解
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

免责声明:
码农网所发布的一切软件、编程资料或者文章仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。如有侵权请邮件与我们联系处理。

Mail To:help@itsvse.com

QQ|Archiver|手机版|小黑屋|架构师 ( 鲁ICP备14021824号-2 )|网站地图

GMT+8, 2020-7-8 11:16

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表