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 dblsaiko ];
20 "/etc/krb5-extra.conf"
23 default_realm = "ATHENA.MIT.EDU";
27 admin_server = "athena.mit.edu";
35 "example.com" = "EXAMPLE.COM";
36 ".example.com" = "EXAMPLE.COM";
43 "ATHENA.MIT.EDU" = ".";
49 ticket_lifetime = 36000;
50 renew_lifetime = 36000;
56 plugins.ccselect.disable = "k5identity";
58 kdc = "SYSLOG:NOTICE";
59 admin_server = "SYSLOG:NOTICE";
60 default = "SYSLOG:NOTICE";
67 let snapshot = pkgs.writeText "krb5-with-example-config.conf" ''
73 renew_lifetime = 36000
74 ticket_lifetime = 36000
87 .example.com = EXAMPLE.COM
88 example.com = EXAMPLE.COM
91 default_realm = ATHENA.MIT.EDU
94 admin_server = SYSLOG:NOTICE
95 default = SYSLOG:NOTICE
105 admin_server = athena.mit.edu
106 kdc = athena01.mit.edu
107 kdc = athena02.mit.edu
110 include /etc/krb5-extra.conf
111 includedir /etc/krb5.conf.d
115 "diff /etc/krb5.conf ${snapshot}"