1 # Verifies that the configuration suggested in (non-deprecated) example values
2 # will result in the expected output.
4 import ../make-test-python.nix ({ pkgs, ...} : {
5 name = "krb5-with-example-config";
6 meta = with pkgs.lib.maintainers; {
7 maintainers = [ eqyiel ];
14 kerberos = pkgs.krb5Full;
16 default_realm = "ATHENA.MIT.EDU";
20 admin_server = "athena.mit.edu";
28 "example.com" = "EXAMPLE.COM";
29 ".example.com" = "EXAMPLE.COM";
36 "ATHENA.MIT.EDU" = ".";
42 ticket_lifetime = 36000;
43 renew_lifetime = 36000;
51 disable = "k5identity";
57 admin_server = SYSLOG:NOTICE
58 default = SYSLOG:NOTICE
64 let snapshot = pkgs.writeText "krb5-with-example-config.conf" ''
66 default_realm = ATHENA.MIT.EDU
70 admin_server = athena.mit.edu
71 kdc = athena01.mit.edu
72 kdc = athena02.mit.edu
76 .example.com = EXAMPLE.COM
77 example.com = EXAMPLE.COM
92 renew_lifetime = 36000
93 ticket_lifetime = 36000
104 admin_server = SYSLOG:NOTICE
105 default = SYSLOG:NOTICE
109 "diff /etc/krb5.conf ${snapshot}"