1 import ../make-test-python.nix ({pkgs, ...}: {
2 name = "kerberos_server-mit";
4 nodes.machine = { config, libs, pkgs, ...}:
5 { services.kerberos_server =
8 "FOO.BAR".acl = [{principal = "admin"; access = ["add" "cpw"];}];
16 default_realm = "FOO.BAR";
20 admin_server = "machine";
26 users.extraUsers.alice = { isNormalUser = true; };
31 "kdb5_util create -s -r FOO.BAR -P master_key",
32 "systemctl restart kadmind.service kdc.service",
35 for unit in ["kadmind", "kdc"]:
36 machine.wait_for_unit(f"{unit}.service")
39 "kadmin.local add_principal -pw admin_pw admin",
40 "kadmin -p admin -w admin_pw addprinc -pw alice_pw alice",
41 "echo alice_pw | sudo -u alice kinit",
45 meta.maintainers = [ pkgs.lib.maintainers.dblsaiko ];