1 import ../make-test-python.nix ({pkgs, ...}: {
2 name = "kerberos_server-heimdal";
3 nodes.machine = { config, libs, pkgs, ...}:
4 { services.kerberos_server =
7 "FOO.BAR".acl = [{principal = "admin"; access = ["add" "cpw"];}];
12 kerberos = pkgs.heimdal;
14 default_realm = "FOO.BAR";
18 admin_server = "machine";
27 "kadmin -l init --realm-max-ticket-life='8 day' --realm-max-renewable-life='10 day' FOO.BAR",
28 "systemctl restart kadmind.service kdc.service",
31 for unit in ["kadmind", "kdc", "kpasswdd"]:
32 machine.wait_for_unit(f"{unit}.service")
35 "kadmin -l add --password=admin_pw --use-defaults admin",
36 "kadmin -l ext_keytab --keytab=admin.keytab admin",
37 "kadmin -p admin -K admin.keytab add --password=alice_pw --use-defaults alice",
38 "kadmin -l ext_keytab --keytab=alice.keytab alice",
39 "kinit -kt alice.keytab alice",