nixos/portunus: use openldap compiled with libxcrypt-legacy

It hardcodes sha256 crypt and the managed slapd crash loops otherwise.
This commit is contained in:
Sandro Jäckel 2023-05-21 18:53:12 +02:00
parent 750ebe74b7
commit 0000000324
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -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.";
};