[Git][debian-edu/debian-edu-config][master] testsuite/ldap-server: Check /var/lib/ldap ownership.
"Mike Gabriel (@sunweaver)" <[email protected]>
| Newsgroups | gmane.linux.skolelinux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Mike Gabriel pushed to branch master at Debian Edu / debian-edu-config Commits: 71f9695a by Daniel Teichmann at 2026-08-18T18:45:43+02:00 testsuite/ldap-server: Check /var/lib/ldap ownership. Regression check for Debian#1144741 (slapd / systemd-sysusers). debian-edu-config does not create the directory. - - - - - 2 changed files: - debian/changelog - testsuite/ldap-server Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,11 @@ +debian-edu-config (2.13.1) UNRELEASED; urgency=medium + + [ Daniel Teichmann ] + * testsuite/ldap-server: Check /var/lib/ldap exists and is owned by + openldap:openldap. Regression check for Debian#1144741. + + -- Daniel Teichmann <[email protected]> Tue, 18 Aug 2026 18:45:33 +0200 + debian-edu-config (2.13.0) unstable; urgency=medium [ Mike Gabriel ] ===================================== testsuite/ldap-server ===================================== @@ -36,6 +36,19 @@ fi RESULT=0 +if [ -d /var/lib/ldap ] ; then + owner=$(stat -c %U:%G /var/lib/ldap) + if [ "$owner" = "openldap:openldap" ]; then + echo "success: $0: /var/lib/ldap is owned by openldap:openldap" + else + echo "error: $0: /var/lib/ldap is owned by $owner, not openldap:openldap" + RESULT=1 + fi +else + echo "error: $0: /var/lib/ldap is missing" + RESULT=1 +fi + for port in ldap; do netstat_check $port tcp slapd || RESULT=1 done View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/71f9695a6240a507a5a25c9531d4cb2ea48f6954 -- View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/71f9695a6240a507a5a25c9531d4cb2ea48f6954 You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help _______________________________________________ debian-edu-commits mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-edu-commits