From: Daniel Teichmann Date: Tue, 18 Aug 2026 14:35:28 +0200 Subject: [PATCH] Ensure /var/lib/ldap is created even with manual configuration Since 2.6.13+dfsg-1 the openldap user is created via systemd-sysusers, which only sets the home directory field in the user database but does not create the directory, unlike the adduser call it replaced. When slapd/no_configuration is set (manual configuration, as done by Debian Edu), create_ldap_directories was never reached, so /var/lib/ldap was not created, breaking slapadd and the Debian Edu tjener LDAP bootstrap. Create the directory unconditionally in postinst. --- debian/slapd.postinst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/slapd.postinst b/debian/slapd.postinst index 764a80f1c..f15ccc730 100644 --- a/debian/slapd.postinst +++ b/debian/slapd.postinst @@ -60,6 +60,12 @@ ignore_init_failure() { # {{{ # Create the openldap user/group early, before chown calls below. if [ "$MODE" = "configure" ] || [ "$MODE" = "reconfigure" ] ; then systemd-sysusers ${DPKG_ROOT:+--root="$DPKG_ROOT"} slapd.conf + # systemd-sysusers only sets the home directory field in the user + # database, it does not create the home directory itself. + # Create it unconditionally since it is required even when + # slapd/no_configuration is set (manual configuration, e.g. by + # Debian Edu) + create_ldap_directories fi # Initialize the FAILED_TO_UPGRADE_CONFIGURATION variable to 0. This