CentOS Stream 9 OpenLDAP failing to start slapd service

Issues related to applications and software problems and general support
Post Reply
mrenshaw
Posts: 1
Joined: 2022/08/19 10:20:03

CentOS Stream 9 OpenLDAP failing to start slapd service

Post by mrenshaw » 2022/08/19 10:25:06

I'm trying to set up an OpenLDAP server on CentOS Stream 9, currently the server is only used to host a Wiki.JS wiki.
I've installed the OpenLDAP server and client packages through yum without any problems but when I try to start slapd services it fails, the log is as follows:

Code: Select all

    × 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.
The server is a fresh install of CentOS stream 9, other than the installation on Wiki.JS and has only been set up within the last couple of weeks so should all be on most recent versions.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS Stream 9 OpenLDAP failing to start slapd service

Post by TrevorH » 2022/08/19 11:02:44

I'd guess that's because the versions of the openldap packages that are in the baseos repo differ from the openldap-servers package from EPEL. The baseos packages are all 2.4.59-4.el9_0 vs the EPEL one which is 2.4.59-1.el9 and probably needs rebuilding. I'd suggest raising a request on bugzilla.redhat.com in the Fedora EPEL section to ask about this.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: CentOS Stream 9 OpenLDAP failing to start slapd service

Post by jlehtone » 2022/08/19 11:30:32

Furthermore, The openldap-servers is not in baseos, but EPEL, because RHEL 7 was the last to include it.
Red Hat deprecated/omitted openldap-servers -- probably to focus on alternatives.

There is '389-ds-base' in EL9 appstream. Its 'dirsrv.service' runs 'ns-slapd'.
I've successfully migrated LDAP database from openldap to 389-ds. (Some 'sed' was necessary and ACL's were set quite differently.)
Openldap-clients do talk to 389-ds server.

Post Reply