about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2020-02-03 19:42:47 +0100
committerGitHub <noreply@github.com>2020-02-03 19:42:47 +0100
commitd4a951f31d2d6a542f2fa6387df2a269f6b9e042 (patch)
treed382de04268fe2ffec38b4f3ad21cabd09930f21
parent150f4a967c631f47ac9a27a0fcfb82f32420366d (diff)
parent28bedc5f11d6fba739f6b761a3e554ac406af453 (diff)
downloadnixlib-d4a951f31d2d6a542f2fa6387df2a269f6b9e042.tar
nixlib-d4a951f31d2d6a542f2fa6387df2a269f6b9e042.tar.gz
nixlib-d4a951f31d2d6a542f2fa6387df2a269f6b9e042.tar.bz2
nixlib-d4a951f31d2d6a542f2fa6387df2a269f6b9e042.tar.lz
nixlib-d4a951f31d2d6a542f2fa6387df2a269f6b9e042.tar.xz
nixlib-d4a951f31d2d6a542f2fa6387df2a269f6b9e042.tar.zst
nixlib-d4a951f31d2d6a542f2fa6387df2a269f6b9e042.zip
Merge pull request #78960 from aanderse/nslcd
nixos/ldap: remove redundant configuration options
-rw-r--r--nixos/modules/config/ldap.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/config/ldap.nix b/nixos/modules/config/ldap.nix
index 9c8e9d149371..b554f197dc4b 100644
--- a/nixos/modules/config/ldap.nix
+++ b/nixos/modules/config/ldap.nix
@@ -28,8 +28,6 @@ let
   };
 
   nslcdConfig = writeText "nslcd.conf" ''
-    uid nslcd
-    gid nslcd
     uri ${cfg.server}
     base ${cfg.base}
     timelimit ${toString cfg.timeLimit}
@@ -282,6 +280,7 @@ in
           Group = "nslcd";
           RuntimeDirectory = [ "nslcd" ];
           PIDFile = "/run/nslcd/nslcd.pid";
+          AmbientCapabilities = "CAP_SYS_RESOURCE";
         };
       };