1 import ../make-test-python.nix ({pkgs, ...}: {
2 name = "kerberos_server-heimdal";
4 nodes.machine = { config, libs, pkgs, ...}:
5 { services.kerberos_server =
8 "FOO.BAR".acl = [{principal = "admin"; access = ["add" "cpw"];}];
13 package = pkgs.heimdal;
16 default_realm = "FOO.BAR";
20 admin_server = "machine";
30 "kadmin -l init --realm-max-ticket-life='8 day' --realm-max-renewable-life='10 day' FOO.BAR",
31 "systemctl restart kadmind.service kdc.service",
34 for unit in ["kadmind", "kdc", "kpasswdd"]:
35 machine.wait_for_unit(f"{unit}.service")
38 "kadmin -l add --password=admin_pw --use-defaults admin",
39 "kadmin -l ext_keytab --keytab=admin.keytab admin",
40 "kadmin -p admin -K admin.keytab add --password=alice_pw --use-defaults alice",
41 "kadmin -l ext_keytab --keytab=alice.keytab alice",
42 "kinit -kt alice.keytab alice",
46 meta.maintainers = [ pkgs.lib.maintainers.dblsaiko ];