c4fb0432ae
GitOrigin-RevId: 3fc1143a04da49a92c3663813c6a0c1e8ccd477f
7 lines
235 B
Nix
7 lines
235 B
Nix
# Utility for invoking slappasswd with the correct options for
|
|
# creating an ARGON2 password hash.
|
|
{ pkgs, ... }:
|
|
|
|
pkgs.writeShellScriptBin "hash-password" ''
|
|
${pkgs.openldap}/bin/slappasswd -o module-load=pw-argon2 -h '{ARGON2}'
|
|
''
|