diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2022-07-22 00:28:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-22 00:28:49 +0200 |
commit | b435482234760a1e80d04d945bb9578e7132a531 (patch) | |
tree | d3bef5a6906663e04175162fa1fe56d016c67975 /nixos/tests | |
parent | 3debd9a437b02061107b00d6bda3a5c606820c82 (diff) | |
parent | be2175dc949a34334f1ad9a81d95279ead470bb1 (diff) |
Merge pull request #182080 from danc86/openldap-sysconfdir
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/openldap.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/nixos/tests/openldap.nix b/nixos/tests/openldap.nix index 3c388119d5d24..96459d21a5efd 100644 --- a/nixos/tests/openldap.nix +++ b/nixos/tests/openldap.nix @@ -13,10 +13,17 @@ let objectClass: organizationalUnit ou: users ''; + ldapClientConfig = { + enable = true; + loginPam = false; + nsswitch = false; + server = "ldap://"; + base = "dc=example"; + }; testScript = '' machine.wait_for_unit("openldap.service") machine.succeed( - 'ldapsearch -LLL -D "cn=root,dc=example" -w notapassword -b "dc=example"', + 'ldapsearch -LLL -D "cn=root,dc=example" -w notapassword', ) ''; in { @@ -57,6 +64,7 @@ in { }; declarativeContents."dc=example" = dbContents; }; + users.ldap = ldapClientConfig; }; }) { inherit pkgs system; }; @@ -76,6 +84,7 @@ in { rootpw = "notapassword"; declarativeContents."dc=example" = dbContents; }; + users.ldap = ldapClientConfig; }; }) { inherit system pkgs; }; @@ -88,6 +97,7 @@ in { enable = true; configDir = "/var/db/slapd.d"; }; + users.ldap = ldapClientConfig; }; testScript = let |