From c2238312edb784ea93589a5921e0c33e09c46fc4 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Thu, 24 Oct 2024 15:12:15 +0200 Subject: [PATCH] fix lldap backup closes #319 --- modules/blocks/ldap.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/blocks/ldap.nix b/modules/blocks/ldap.nix index 25c40e9..48f9ca8 100644 --- a/modules/blocks/ldap.nix +++ b/modules/blocks/ldap.nix @@ -112,9 +112,12 @@ in ''; readOnly = true; default = { - user = "lldap"; + # TODO: is there a workaround that avoid needing to use root? + # root because otherwise we cannot access the private StateDiretory + user = "root"; + # /private because the systemd service uses DynamicUser=true sourceDirectories = [ - "/var/lib/lldap" + "/var/lib/private/lldap" ]; }; };