Skip to content

Commit 1093aaf

Browse files
committed
fix(entrypoint): fix key stash file
1 parent 48e8407 commit 1093aaf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

entrypoint.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
set -e
4+
35
KADMIN_PRINCIPAL_FULL=$KADMIN_PRINCIPAL@$KDC_REALM
46

57
echo "REALM: $KDC_REALM"
@@ -29,6 +31,7 @@ cat > /etc/krb5kdc/kdc.conf <<EOF
2931
max_renewable_life = 7d 0h 0m 0s
3032
supported_enctypes = $KDC_SUPPORTED_ENCRYPTION_TYPES
3133
default_principal_flags = +preauth
34+
key_stash_file = /var/lib/krb5kdc/.k5.$KDC_REALM
3235
}
3336
EOF
3437

@@ -53,10 +56,7 @@ if [ ! -f /var/lib/krb5kdc/principal ]; then
5356
echo
5457

5558
echo "Creating Kerberos database"
56-
krb5_newrealm <<EOF
57-
$MASTER_PASSWORD
58-
$MASTER_PASSWORD
59-
EOF
59+
kdb5_util create -s -P $MASTER_PASSWORD
6060
fi
6161

6262
echo "Starting Kerberos KDC"

0 commit comments

Comments
 (0)