Score:0

CentOS Stream 8 OpenLDAP failing to start slapd service

ba flag

I tried to install openldap by following this guide: https://computingforgeeks.com/install-configure-openldap-server-centos/

but the service does not start showing the following error:

● slapd.service - OpenLDAP Server Daemon
   Loaded: loaded (/etc/systemd/system/slapd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2022-11-18 23:19:23 CET; 1min 20s ago
     Docs: man:slapd
           man:slapd-mdb
  Process: 7611 ExecStart=/usr/libexec/slapd -u ldap -g ldap -h ${SLAPD_URLS} $SLAPD_OPTIONS (code=exited, status=1/FAILURE)

Nov 18 23:19:23 itl-cslapp-54 slapd[7611]: ldif_read_file: checksum error on "/etc/openldap/slapd.d/cn=config.ldif"
Nov 18 23:19:23 itl-cslapp-54 slapd[7611]: ldif_read_file: checksum error on "/etc/openldap/slapd.d/cn=config/olcDatabase={1}mdb.ldif"
Nov 18 23:19:23 itl-cslapp-54 slapd[7611]: ldif_read_file: checksum error on "/etc/openldap/slapd.d/cn=config/olcDatabase={2}mdb.ldif"
Nov 18 23:19:23 itl-cslapp-54 slapd[7611]: olcSuffix: value #0: <olcSuffix> namingContext "dc=ldapmaster,dc=company,dc=it" already served by a preceding mdb database serving namingContext "dc=ldapmaster,dc=company,dc=it"
Nov 18 23:19:23 itl-cslapp-54 slapd[7611]: config error processing olcDatabase={2}mdb,cn=config: <olcSuffix> namingContext "dc=ldapmaster,dc=company,dc=it" already served by a preceding mdb database
Nov 18 23:19:23 itl-cslapp-54 slapd[7611]: slapd stopped.
Nov 18 23:19:23 itl-cslapp-54 slapd[7611]: connections_destroy: nothing to destroy.
Nov 18 23:19:23 itl-cslapp-54 systemd[1]: slapd.service: Control process exited, code=exited status=1
Nov 18 23:19:23 itl-cslapp-54 systemd[1]: slapd.service: Failed with result 'exit-code'

how can i fix it?

Thanks

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.