From 99adf5a79487fd592d478dd6a83d1510f25eff29 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Thu, 30 Nov 2023 13:55:25 -0700 Subject: [PATCH] Added kadmind --- machines/kerberos.metznet.ca.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/machines/kerberos.metznet.ca.scm b/machines/kerberos.metznet.ca.scm index d36d3cf..17de14c 100644 --- a/machines/kerberos.metznet.ca.scm +++ b/machines/kerberos.metznet.ca.scm @@ -287,6 +287,26 @@ cryptography.") "KRB5_KDC_PROFILE=/etc/kdc.conf") #:user "root" #:group "root")) + (stop #~(make-kill-destructor))) + (shepherd-service (documentation "") + (provision '(kadmind)) + (requirement '(networking user-processes)) + (start #~(make-forkexec-constructor (list #$(file-append + (kdc-configuration-krb5 + configuration) + "/sbin/kadmind") + "-nofork" "-P" + "/run/kadmind.pid") + #:environment-variables + (list (string-append + "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:" + #$(kdc-configuration-krb5 + configuration) + "/lib/krb5/plugins/kdb") + "SSL_CERT_DIR=/etc/ssl/certs" + "KRB5_KDC_PROFILE=/etc/kdc.conf") + #:user "root" + #:group "root")) (stop #~(make-kill-destructor))))) (define kdc-service-type