From 2f0bd926ea9c15b9b76c25410ce3dd7c2bdda869 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 18 Aug 2022 11:34:20 +0200 Subject: [PATCH] nixos/sssd-ldap: fix eval Introduced by fd7d901133f9fbfc893cdb33f7d630846bb21f9c. The openldap module now expects the database directory to be below `/var/lib/openldap`, oterhwise it'll fail evaluation like this: Failed assertions: - Database dc=example,dc=org has `olcDbDirectory` (/var/db/openldap) that is not a subdirectory of `/var/lib/openldap/`. --- nixos/tests/sssd-ldap.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/sssd-ldap.nix b/nixos/tests/sssd-ldap.nix index f816c0652cc5..2b328f71d17c 100644 --- a/nixos/tests/sssd-ldap.nix +++ b/nixos/tests/sssd-ldap.nix @@ -28,7 +28,7 @@ in import ./make-test-python.nix ({pkgs, ...}: { attrs = { objectClass = [ "olcDatabaseConfig" "olcMdbConfig" ]; olcDatabase = "{1}mdb"; - olcDbDirectory = "/var/db/openldap"; + olcDbDirectory = "/var/lib/openldap/db"; olcSuffix = dbSuffix; olcRootDN = "cn=${ldapRootUser},${dbSuffix}"; olcRootPW = ldapRootPassword;