Worktree ipa lxc kerberos fix #88

Merged
beatzaplenty merged 2 commits from worktree-ipa-lxc-kerberos-fix into main 2026-07-28 03:39:23 +00:00
Showing only changes of commit 0fe7ddf6e8 - Show all commits
@@ -81,6 +81,14 @@ if [[ -z "${TARGET}" ]]; then
usage 1
fi
# Reject FQDNs passed by mistake — the script appends HOME_DOMAIN itself.
# "nixos.sweet.home" → FQDN would become "nixos.sweet.home.sweet.home".
if [[ "${TARGET}" == *"."* ]]; then
echo "Error: <hostname> must be the short name (e.g. 'nixos'), not a FQDN." >&2
echo " The FQDN is derived automatically as ${TARGET}.${HOME_DOMAIN}." >&2
exit 1
fi
FQDN="${TARGET}.${HOME_DOMAIN}"
KEYTAB_SECRET="${REPO_ROOT}/secrets/${TARGET}.keytab"
# Temp path on the domain controller — use a name that won't collide.