1 # Verifies that the configuration suggested in (non-deprecated) example values
2 # will result in the expected output.
4 import ../make-test-python.nix (
7 name = "krb5-with-example-config";
8 meta = with pkgs.lib.maintainers; {
26 "/etc/krb5-extra.conf"
29 default_realm = "ATHENA.MIT.EDU";
33 admin_server = "athena.mit.edu";
41 "example.com" = "EXAMPLE.COM";
42 ".example.com" = "EXAMPLE.COM";
49 "ATHENA.MIT.EDU" = ".";
55 ticket_lifetime = 36000;
56 renew_lifetime = 36000;
62 plugins.ccselect.disable = "k5identity";
64 kdc = "SYSLOG:NOTICE";
65 admin_server = "SYSLOG:NOTICE";
66 default = "SYSLOG:NOTICE";
74 snapshot = pkgs.writeText "krb5-with-example-config.conf" ''
80 renew_lifetime = 36000
81 ticket_lifetime = 36000
94 .example.com = EXAMPLE.COM
95 example.com = EXAMPLE.COM
98 default_realm = ATHENA.MIT.EDU
101 admin_server = SYSLOG:NOTICE
102 default = SYSLOG:NOTICE
112 admin_server = athena.mit.edu
113 kdc = athena01.mit.edu
114 kdc = athena02.mit.edu
117 include /etc/krb5-extra.conf
118 includedir /etc/krb5.conf.d
123 "diff /etc/krb5.conf ${snapshot}"