2017-09-23 04:18:44 +01:00
|
|
|
# Verifies that the configuration suggested in deprecated example values
|
|
|
|
# will result in the expected output.
|
|
|
|
|
|
|
|
import ../make-test.nix ({ pkgs, ...} : {
|
|
|
|
name = "krb5-with-deprecated-config";
|
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ eqyiel ];
|
|
|
|
};
|
|
|
|
|
|
|
|
machine =
|
2018-07-20 21:56:59 +01:00
|
|
|
{ ... }: {
|
2017-09-23 04:18:44 +01: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 ''
|
|
|
|
$machine->succeed("diff /etc/krb5.conf ${snapshot}");
|
|
|
|
'';
|
|
|
|
})
|