你好,当我尝试在 centos 7 服务器上安装 open-ldap 时,我想我运行了 yum remove ldap 命令(我不确定具体情况),现在 slap 服务根本不起作用
[root@kwephispra28828 etc]# systemctl start slapd
Job for slapd.service failed because the control process exited with error code. See "systemctl status slapd.service" and "journalctl -xe" for details.
[root@kwephispra28828 etc]# journalctl -xe
Dec 09 16:36:04 kwephispra28828 runuser[53027]: pam_unix(runuser:session): session opened for user ldap by (uid=0)
Dec 09 16:36:04 kwephispra28828 runuser[53027]: pam_unix(runuser:session): session closed for user ldap
Dec 09 16:36:04 kwephispra28828 slapcat[53031]: DIGEST-MD5 common mech free
Dec 09 16:36:04 kwephispra28828 slapd[53039]: @(#) $OpenLDAP: slapd 2.4.44 (Aug 31 2021 14:48:49) $
[email protected]:/builddir/build/BUILD/openldap-2.4.44/openldap-2.4.44/servers/slapd
Dec 09 16:36:05 kwephispra28828 slapd[53039]: main: TLS init def ctx failed: -1
Dec 09 16:36:05 kwephispra28828 slapd[53039]: DIGEST-MD5 common mech free
Dec 09 16:36:05 kwephispra28828 slapd[53039]: slapd stopped.
Dec 09 16:36:05 kwephispra28828 slapd[53039]: connections_destroy: nothing to destroy.
Dec 09 16:36:05 kwephispra28828 systemd[1]: slapd.service: control process exited, code=exited status=1
Dec 09 16:36:05 kwephispra28828 systemd[1]: Failed to start OpenLDAP Server Daemon.
-- Subject: Unit slapd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit slapd.service has failed.
--
-- The result is failed.
Dec 09 16:36:05 kwephispra28828 systemd[1]: Unit slapd.service entered failed state.
Dec 09 16:36:05 kwephispra28828 systemd[1]: slapd.service failed.
Dec 09 16:36:05 kwephispra28828 polkitd[6312]: Unregistered Authentication Agent for unix-process:53016:5514800560 (system bus name :1.1155728, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconn
lines 2509-2566/2566
这是 systemctl 状态
[root@kwephispra28828 etc]# systemctl status slapd
● slapd.service - OpenLDAP Server Daemon
Loaded: loaded (/usr/lib/systemd/system/slapd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2021-12-09 16:36:05 +03; 2min 19s ago
Docs: man:slapd
man:slapd-config
man:slapd-hdb
man:slapd-mdb
file:///usr/share/doc/openldap-servers/guide.html
Process: 53039 ExecStart=/usr/sbin/slapd -u ldap -h ${SLAPD_URLS} $SLAPD_OPTIONS (code=exited, status=1/FAILURE)
Process: 53022 ExecStartPre=/usr/libexec/openldap/check-config.sh (code=exited, status=0/SUCCESS)
Dec 09 16:36:04 kwephispra28828 slapcat[53031]: DIGEST-MD5 common mech free
Dec 09 16:36:04 kwephispra28828 slapd[53039]: @(#) $OpenLDAP: slapd 2.4.44 (Aug 31 2021 14:48:49) $
[email protected]:/builddir/build/BUILD/openldap-2.4.44/openldap-2.4.44/servers/slapd
Dec 09 16:36:05 kwephispra28828 slapd[53039]: main: TLS init def ctx failed: -1
Dec 09 16:36:05 kwephispra28828 slapd[53039]: DIGEST-MD5 common mech free
Dec 09 16:36:05 kwephispra28828 slapd[53039]: slapd stopped.
Dec 09 16:36:05 kwephispra28828 slapd[53039]: connections_destroy: nothing to destroy.
Dec 09 16:36:05 kwephispra28828 systemd[1]: slapd.service: control process exited, code=exited status=1
Dec 09 16:36:05 kwephispra28828 systemd[1]: Failed to start OpenLDAP Server Daemon.
Dec 09 16:36:05 kwephispra28828 systemd[1]: Unit slapd.service entered failed state.
Dec 09 16:36:05 kwephispra28828 systemd[1]: slapd.service failed.
知道如何修复这个问题吗?