2020-07-01 22:29:35 +02:00
|
|
|
# Utility for invoking slappasswd with the correct options for
|
|
|
|
# creating an ARGON2 password hash.
|
2021-05-23 15:48:02 +02:00
|
|
|
{ depot, pkgs, ... }:
|
2020-07-01 22:29:35 +02:00
|
|
|
|
|
|
|
pkgs.writeShellScriptBin "hash-password" ''
|
2021-05-23 15:48:02 +02:00
|
|
|
${depot.third_party.openldap}/bin/slappasswd -o module-load=pw-argon2 -h '{ARGON2}'
|
2020-07-01 22:29:35 +02:00
|
|
|
''
|