CentOS Stream 9 OpenLDAP 无法启动 slapd 服务

CentOS Stream 9 OpenLDAP 无法启动 slapd 服务

我正在尝试在 CentOS Stream 9 上设置 OpenLDAP 服务器,目前该服务器仅用于托管 Wiki.JS wiki。我已经通过 yum 安装了 OpenLDAP 服务器和客户端包,没有任何问题,但是当我尝试启动 slapd 服务时失败,日志如下:

× slapd.service - OpenLDAP Server Daemon
     Loaded: loaded (/usr/lib/systemd/system/slapd.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Fri 2022-08-19 10:18:31 BST; 8s ago
       Docs: man:slapd
             man:slapd-config
             man:slapd-hdb
             man:slapd-mdb
             file:///usr/share/doc/openldap-servers/guide.html
    Process: 22215 ExecStartPre=/usr/libexec/openldap/check-config.sh (code=exited, status=0/SUCCESS)
    Process: 22229 ExecStart=/usr/sbin/slapd -u ldap -h ldap:/// ldaps:/// ldapi:/// (code=exited, status=127)
        CPU: 19ms

Aug 19 10:18:31 yorkwiki runuser[22218]: pam_unix(runuser:session): session opened for user ldap(uid=55) by (uid=0)
Aug 19 10:18:31 wiki runuser[22218]: pam_unix(runuser:session): session closed for user ldap
Aug 19 10:18:31 wiki check-config.sh[22215]: Checking configuration file failed:
Aug 19 10:18:31 wiki check-config.sh[22220]: /usr/sbin/slaptest: Symbol 'ldap_int_global_options' has different size in shared object, consider re-linking
Aug 19 10:18:31 wiki check-config.sh[22220]: /usr/sbin/slaptest: symbol lookup error: /usr/sbin/slaptest: undefined symbol: ldap_pvt_thread_pool_pausecheck
Aug 19 10:18:31 wiki slapd[22229]: /usr/sbin/slapd: Symbol 'ldap_int_global_options' has different size in shared object, consider re-linking
Aug 19 10:18:31 wiki slapd[22229]: /usr/sbin/slapd: symbol lookup error: /usr/sbin/slapd: undefined symbol: ldap_pvt_thread_pool_pausecheck
Aug 19 10:18:31 wiki systemd[1]: slapd.service: Control process exited, code=exited, status=127/n/a
Aug 19 10:18:31 wiki systemd[1]: slapd.service: Failed with result 'exit-code'.
Aug 19 10:18:31 wiki systemd[1]: Failed to start OpenLDAP Server Daemon.

除了 Wiki.JS 上的安装外,该服务器是 CentOS stream 9 的全新安装,并且仅在最近几周内设置,因此应该都是最新版本。

相关内容