From b89b4605df7b1582b1b1c96908c0a9e8c04699d1 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Wed, 4 Jun 2025 21:40:57 +0100 Subject: rename $ACME_* to $LFACME_* for consistency with hook variables, and to avoid conflicts with other applications. --- kerberos.sh.in | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'kerberos.sh.in') diff --git a/kerberos.sh.in b/kerberos.sh.in index e29f9c3..7cbaa51 100644 --- a/kerberos.sh.in +++ b/kerberos.sh.in @@ -15,7 +15,7 @@ TOKEN=$4 # The token value we need to create. AUTH=$5 -_KINIT="$(_findbin kinit $ACME_KERBEROS_KINIT)" +_KINIT="$(_findbin kinit $LFACME_KERBEROS_KINIT)" if [ "$#" -ne 5 ]; then _fatal "missing arguments" @@ -25,20 +25,20 @@ if [ "$METHOD" != "dns-01" ]; then exit 1 fi -if [ -z "$ACME_KERBEROS_PRINCIPAL" ]; then - ACME_KERBEROS_PRINCIPAL="host/$(hostname)" +if [ -z "$LFACME_KERBEROS_PRINCIPAL" ]; then + LFACME_KERBEROS_PRINCIPAL="host/$(hostname)" fi -if [ -z "$ACME_KERBEROS_KEYTAB" ]; then - ACME_KERBEROS_KEYTAB="/etc/krb5.keytab" +if [ -z "$LFACME_KERBEROS_KEYTAB" ]; then + LFACME_KERBEROS_KEYTAB="/etc/krb5.keytab" fi -if ! [ -r "$ACME_KERBEROS_KEYTAB" ]; then +if ! [ -r "$LFACME_KERBEROS_KEYTAB" ]; then _fatal "keytab does not exist (or is not readable): %s" \ - "$ACME_KERBEROS_KEYTAB" + "$LFACME_KERBEROS_KEYTAB" fi -if ! $_KINIT -k -t "$ACME_KERBEROS_KEYTAB" "$ACME_KERBEROS_PRINCIPAL"; then +if ! $_KINIT -k -t "$LFACME_KERBEROS_KEYTAB" "$LFACME_KERBEROS_PRINCIPAL"; then _fatal "failed to obtain a Kerberos ticket" fi -- cgit v1.2.3