Created
July 21, 2016 08:41
-
-
Save gbraccialli/03f0181205d83c01d1ea3f7571f315bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#validate keytabs | |
for keytab in `ls /etc/security/keytabs/*.keytab`; do principal=`klist -k $keytab | tail -1 | awk '{print $2}'`;kinit -kt $keytab $principal;rt=$?;listprincipal=`klist | grep Default`;kdestroy;echo "status = $rt - keytab = $keytab - principal = $principal"; done 2>/dev/nul | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment