From 0000000324d0f1e01cef043cf20fac9afc2dc693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 21 May 2023 18:53:12 +0200 Subject: [PATCH] nixos/portunus: use openldap compiled with libxcrypt-legacy It hardcodes sha256 crypt and the managed slapd crash loops otherwise. --- nixos/modules/services/misc/portunus.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/misc/portunus.nix b/nixos/modules/services/misc/portunus.nix index 5504fb942968..d18881986970 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."; };