fix(hash-password): Ensure OpenLDAP with correct module is used

This is fixed in upstream nixpkgs, but we're not yet at a commit where
it's used, so it's important to use the OpenLDAP from //third_party

Change-Id: I7c033cd23f45a95c4a4af864ffe561c496833a0d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3143
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2021-05-23 15:48:02 +02:00 committed by tazjin
parent c8dff5fc5f
commit 797212077d

View file

@ -1,7 +1,7 @@
# Utility for invoking slappasswd with the correct options for # Utility for invoking slappasswd with the correct options for
# creating an ARGON2 password hash. # creating an ARGON2 password hash.
{ pkgs, ... }: { depot, pkgs, ... }:
pkgs.writeShellScriptBin "hash-password" '' pkgs.writeShellScriptBin "hash-password" ''
${pkgs.openldap}/bin/slappasswd -o module-load=pw-argon2 -h '{ARGON2}' ${depot.third_party.openldap}/bin/slappasswd -o module-load=pw-argon2 -h '{ARGON2}'
'' ''