2017-09-23 03:18:44 +00:00
|
|
|
# Verifies that the configuration suggested in deprecated example values
|
|
|
|
# will result in the expected output.
|
|
|
|
|
2020-02-14 08:56:32 +00:00
|
|
|
import ../make-test-python.nix ({ pkgs, ...} : {
|
2017-09-23 03:18:44 +00:00
|
|
|
name = "krb5-with-deprecated-config";
|
2021-01-10 19:08:30 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2017-09-23 03:18:44 +00:00
|
|
|
maintainers = [ eqyiel ];
|
|
|
|
};
|
|
|
|
|
2022-03-20 23:15:30 +00:00
|
|
|
nodes.machine =
|
2018-07-20 20:56:59 +00:00
|
|
|
{ ... }: {
|
2017-09-23 03:18:44 +00:00
|
|
|
krb5 = {
|
|
|
|
enable = true;
|
|
|
|
defaultRealm = "ATHENA.MIT.EDU";
|
|
|
|
domainRealm = "athena.mit.edu";
|
|
|
|
kdc = "kerberos.mit.edu";
|
|
|
|
kerberosAdminServer = "kerberos.mit.edu";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
let snapshot = pkgs.writeText "krb5-with-deprecated-config.conf" ''
|
|
|
|
[libdefaults]
|
|
|
|
default_realm = ATHENA.MIT.EDU
|
|
|
|
|
|
|
|
[realms]
|
|
|
|
ATHENA.MIT.EDU = {
|
|
|
|
admin_server = kerberos.mit.edu
|
|
|
|
kdc = kerberos.mit.edu
|
|
|
|
}
|
|
|
|
|
|
|
|
[domain_realm]
|
|
|
|
.athena.mit.edu = ATHENA.MIT.EDU
|
|
|
|
athena.mit.edu = ATHENA.MIT.EDU
|
|
|
|
|
|
|
|
[capaths]
|
|
|
|
|
|
|
|
|
|
|
|
[appdefaults]
|
|
|
|
|
|
|
|
|
|
|
|
[plugins]
|
|
|
|
|
|
|
|
'';
|
|
|
|
in ''
|
2020-02-14 08:56:32 +00:00
|
|
|
machine.succeed(
|
|
|
|
"diff /etc/krb5.conf ${snapshot}"
|
|
|
|
)
|
2017-09-23 03:18:44 +00:00
|
|
|
'';
|
|
|
|
})
|