1 import ../make-test-python.nix ({pkgs, ...}: {
2 name = "kerberos_server-mit";
3 nodes.machine = { config, libs, pkgs, ...}:
4 { services.kerberos_server =
7 "FOO.BAR".acl = [{principal = "admin"; access = ["add" "cpw"];}];
12 kerberos = pkgs.krb5Full;
14 default_realm = "FOO.BAR";
18 admin_server = "machine";
23 users.extraUsers.alice = { isNormalUser = true; };
28 "kdb5_util create -s -r FOO.BAR -P master_key",
29 "systemctl restart kadmind.service kdc.service",
32 for unit in ["kadmind", "kdc"]:
33 machine.wait_for_unit(f"{unit}.service")
36 "kadmin.local add_principal -pw admin_pw admin",
37 "kadmin -p admin -w admin_pw addprinc -pw alice_pw alice",
38 "echo alice_pw | sudo -u alice kinit",