Problem: Diagnostic Error in 62_check_slapschema Script Related to LDAP Schema Validation

Problem

You encounter the following diagnostic error when running the 62_check_slapschema diagnostic script:

################################### Start 62_check_slapschema ###################################
## Check failed: 62_check_slapschema - Validierung der LDAP-Konfigurations und Schema Dateien. ##
Die LDAP-Schema-Validierung ist mit den folgenden Fehlern oder Warnungen fehlgeschlagen:
overlay "translog" not found
config error processing olcOverlay={0}translog,olcDatabase={1}mdb,cn=config: <olcOverlay> handler exited with 1
#################################### End 62_check_slapschema ####################################

Investigation

Check the contents of your /etc/ldap/slapd.d/ directory:

ls -lah /etc/ldap/slapd.d/

Example output:

root@primary:~# ls -lah /etc/ldap/slapd.d/
insgesamt 20K
drwxr-xr-x 3 openldap openldap 4,0K Nov 12 10:39  .
drwxr-xr-x 5 root     root     4,0K Dez 10 16:00  ..
drwxr-x--- 5 openldap openldap 4,0K Nov 12 10:39 'cn=config'
-rw------- 1 root     root     1,6K Nov 12 10:39 'cn=config.ldif'
-rw------- 1 openldap openldap  478 Feb 26  2024 'cn=config.ldif.DISABLED'

In this case, you can see the file cn=config.ldif in the directory.

Solution

To resolve the issue, move the cn=config.ldif file out of the directory:

mv /etc/ldap/slapd.d/cn=config.ldif /path/to/backup/location/

After moving the file, run the 62_check_slapschema diagnostic script again:

univention-run-diagnostic-checks -t 62_check_slapschema

The error should no longer appear.

1 Like

This topic was automatically closed after 24 hours. New replies are no longer allowed.

Mastodon