[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] 2 commits: share/debian-edu-config/tools/clean-up-host-keytabs: Don't fail on Kerberos principal removal.

Mike Gabriel (@sunweaver) gitlab at salsa.debian.org
Tue Feb 8 15:35:20 GMT 2022



Mike Gabriel pushed to branch master at Debian Edu / debian-edu-config


Commits:
612a1557 by Mike Gabriel at 2022-02-08T16:33:19+01:00
share/debian-edu-config/tools/clean-up-host-keytabs: Don't fail on Kerberos principal removal.

- - - - -
45106c8e by Mike Gabriel at 2022-02-08T16:35:08+01:00
share/debian-edu-config/tools/clean-up-host-keytabs: Set executable bits of this file.

- - - - -


2 changed files:

- debian/changelog
- share/debian-edu-config/tools/clean-up-host-keytabs


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+debian-edu-config (2.12.17) UNRELEASED; urgency=medium
+
+  * share/debian-edu-config/tools/clean-up-host-keytabs:
+    + Don't fail on Kerberos principal removal.
+    + Set executable bits of this file.
+
+ -- Mike Gabriel <sunweaver at debian.org>  Tue, 08 Feb 2022 16:32:26 +0100
+
 debian-edu-config (2.12.16) unstable; urgency=medium
 
   [ Wolfgang Schweer ]


=====================================
share/debian-edu-config/tools/clean-up-host-keytabs
=====================================
@@ -50,8 +50,8 @@ hosts_str=$(echo $hosts_str | tr 'A-Z' 'a-z')
 for i in $(basename -a /etc/debian-edu/host-keytabs/* | sed 's#.intern.keytab##') ; do
 	match_value=$(echo $i | tr 'A-Z' 'a-z')
 	if [[ ! "${hosts_str},," =~ ",,$match_value,," ]]; then
-		kadmin.local delprinc host/$i.intern at INTERN
-		kadmin.local delprinc nfs/$i.intern at INTERN
+		kadmin.local delprinc host/$i.intern at INTERN || true
+		kadmin.local delprinc nfs/$i.intern at INTERN || true
 		rm /etc/debian-edu/host-keytabs/$i.intern.keytab
 	fi
 done



View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/compare/5760b0e258db4a33fbf0c1f6019359677d93b8cc...45106c8ec84417edd954cff5df65ea68211d515c

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/compare/5760b0e258db4a33fbf0c1f6019359677d93b8cc...45106c8ec84417edd954cff5df65ea68211d515c
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20220208/98b44459/attachment.htm>


More information about the debian-edu-commits mailing list