aboutsummaryrefslogtreecommitdiff
path: root/scripts/hostclass/idm_server/30-kdc
blob: 4921688690d7af7488d7f36b1f1c0f5e3504c6bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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