nixos/sssd-ldap: verify that passing secrets via env works

This commit is contained in:
Maximilian Bosch 2022-08-18 11:37:43 +02:00
parent 2f0bd926ea
commit 204d32c5c1
No known key found for this signature in database
GPG Key ID: 9A6EEA275CA5BE0A

View File

@ -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
'';
};
};