This wrapper script correctly invokes slappasswd for generating ARGON2 hashes. People without Nix will need to figure this out on their own. Change-Id: I264715ba4932855b868bef70cc9102515b3d129e Reviewed-on: https://cl.tvl.fyi/c/depot/+/833 Tested-by: BuildkiteCI Reviewed-by: BuildkiteCI Reviewed-by: Kane York <rikingcoding@gmail.com>
		
			
				
	
	
		
			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}'
 | |
| ''
 |