mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 22:47:37 +00:00
nixos/sssd-ldap: verify that passing secrets via env works
This commit is contained in:
parent
2f0bd926ea
commit
204d32c5c1
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user