diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2024-08-02 19:10:39 -0400 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2024-08-02 19:10:39 -0400 |
commit | cbcd022f302adc39ecb89fba6faf72e68184c0e0 (patch) | |
tree | a5ab154e08fa3c4fa110b09d3475736c66840c8b /scripts/hostclass/idm_server/30-kdc | |
parent | ceb339370d7a0cc4a83fe54103a650dfb3f72261 (diff) | |
download | infrastructure-cbcd022f302adc39ecb89fba6faf72e68184c0e0.tar.gz |
halfway working idm server and laptop hostclasses
Diffstat (limited to 'scripts/hostclass/idm_server/30-kdc')
-rw-r--r-- | scripts/hostclass/idm_server/30-kdc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/hostclass/idm_server/30-kdc b/scripts/hostclass/idm_server/30-kdc new file mode 100644 index 0000000..4921688 --- /dev/null +++ b/scripts/hostclass/idm_server/30-kdc @@ -0,0 +1,12 @@ +#!/bin/sh + +# Install MIT kerberos. +pkg install -y krb5 + +if is_primary_server; then + # ou=kdc,dc=example,dc=com + ldap_add "$kdc_basedn" <<EOF +objectClass: organizationalUnit +ou: $(ldap_rdn_value "$dns_basedn") +EOF +fi |