tvl-depot/tools/hash-password.nix
Vincent Ambo 797212077d 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>
2021-05-23 13:58:10 +00:00

7 lines
255 B
Nix

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