kdc: Move KDC to run in container

This commit is contained in:
Timo Makinen 2022-02-24 21:44:48 +00:00
parent 0c00037cf2
commit 9c083ebb81
10 changed files with 71 additions and 119 deletions

View file

@ -0,0 +1,13 @@
[Unit]
Description=Kerberos KDC Container
[Service]
User=kdc
EnvironmentFile=/etc/sysconfig/kdc-container
ExecStart=/usr/bin/podman run --rm -p 127.0.0.1:8001:8000 --name kdc \
-e LDAP_BASEDN -e LDAP_BIND_PW -e KRB5_REALM -e KRB5_STASH_PW kdc
ExecStop=/usr/bin/podman stop kdc
KillMode=none
[Install]
WantedBy=multi-user.target