diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2023-05-21 18:53:12 +0200 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2023-05-21 18:54:56 +0200 |
commit | 0000000324d0f1e01cef043cf20fac9afc2dc693 (patch) | |
tree | 22ae3f928b0a20eac012a421a008c991fac6bf9f /nixos | |
parent | 750ebe74b7eb0b31500ee55a5f8abde80d1aeabe (diff) |
nixos/portunus: use openldap compiled with libxcrypt-legacy
It hardcodes sha256 crypt and the managed slapd crash loops otherwise.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/portunus.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/services/misc/portunus.nix b/nixos/modules/services/misc/portunus.nix index 5504fb942968f..d188819869702 100644 --- a/nixos/modules/services/misc/portunus.nix +++ b/nixos/modules/services/misc/portunus.nix @@ -107,8 +107,9 @@ in ldap = { package = mkOption { type = types.package; - default = pkgs.openldap; - defaultText = lib.literalExpression "pkgs.openldap"; + # needs openldap built with a libxcrypt that support crypt sha256 until https://github.com/majewsky/portunus/issues/2 is solved + default = pkgs.openldap.override { libxcrypt = pkgs.libxcrypt-legacy; }; + defaultText = lib.literalExpression "pkgs.openldap.override { libxcrypt = pkgs.libxcrypt-legacy; }"; description = lib.mdDoc "The OpenLDAP package to use."; }; |