Skip to content

Commit 6581ab9

Browse files
committed
openldap: change runtime directory
Use `openldap` for consistency between `/var/lib` and `/run`.
1 parent 449a8eb commit 6581ab9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

nixos/modules/services/databases/openldap.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ in {
319319
# outside the main process:
320320
# Got notification message from PID 6378, but reception only permitted for main PID 6377
321321
NotifyAccess = "all";
322-
RuntimeDirectory = "slapd"; # TODO: openldap, for consistency
322+
RuntimeDirectory = "openldap";
323323
StateDirectory = ["openldap"]
324324
++ (map ({olcDbDirectory, ... }: removePrefix "/var/lib/" olcDbDirectory) (attrValues dbSettings));
325325
StateDirectoryMode = "700";

pkgs/development/libraries/openldap/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ stdenv.mkDerivation rec {
9393
"ac_cv_func_memcmp_working=yes"
9494
] ++ lib.optional stdenv.isFreeBSD "--with-pic";
9595

96-
NIX_CFLAGS_COMPILE = [ "-DLDAPI_SOCK=\"/run/slapd/ldapi\"" ];
96+
NIX_CFLAGS_COMPILE = [ "-DLDAPI_SOCK=\"/run/openldap/ldapi\"" ];
9797

9898
makeFlags= [
9999
"CC=${stdenv.cc.targetPrefix}cc"

0 commit comments

Comments
 (0)