From 204d32c5c1be0d172d7c6a1840334994979eb0d3 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 18 Aug 2022 11:37:43 +0200 Subject: [PATCH] nixos/sssd-ldap: verify that passing secrets via env works --- nixos/tests/sssd-ldap.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/tests/sssd-ldap.nix b/nixos/tests/sssd-ldap.nix index 2b328f71d17c..27dce6ceb98c 100644 --- a/nixos/tests/sssd-ldap.nix +++ b/nixos/tests/sssd-ldap.nix @@ -67,6 +67,8 @@ in import ./make-test-python.nix ({pkgs, ...}: { services.sssd = { enable = true; + # just for testing purposes, don't put this into the Nix store in production! + environmentFile = "${pkgs.writeText "ldap-root" "LDAP_BIND_PW=${ldapRootPassword}"}"; config = '' [sssd] config_file_version = 2 @@ -80,7 +82,7 @@ in import ./make-test-python.nix ({pkgs, ...}: { ldap_search_base = ${dbSuffix} ldap_default_bind_dn = cn=${ldapRootUser},${dbSuffix} ldap_default_authtok_type = password - ldap_default_authtok = ${ldapRootPassword} + ldap_default_authtok = $LDAP_BIND_PW ''; }; };