From 36f26bdf6364e33dcb949379a1a294b17b45a595 Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Wed, 7 Aug 2024 14:58:24 +0200
Subject: [PATCH] infra/image/system-service/fixipaip.sh: Use of admin for
 kinit call

The kinit call have been missing the principal.
---
 infra/image/system-service/fixipaip.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infra/image/system-service/fixipaip.sh b/infra/image/system-service/fixipaip.sh
index 2330b01..f7053e0 100755
--- a/infra/image/system-service/fixipaip.sh
+++ b/infra/image/system-service/fixipaip.sh
@@ -55,7 +55,7 @@ echo "  IP: '${IP}'"
 echo "  PTR: '${PTR}'"
 echo "  FORWARDER: '${FORWARDER}'"
 
-if ! echo "SomeADMINpassword" | kinit -c "${KRB5CCNAME}"
+if ! echo "SomeADMINpassword" | kinit -c "${KRB5CCNAME}" admin >/dev/null
 then
     echo "ERROR: Failed to obtain Kerberos ticket"
     exit 1
-- 
GitLab