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>
		
			
				
	
	
		
			7 lines
		
	
	
	
		
			255 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			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}'
 | |
| ''
 |