Added krb5.bashrc.
authorIain Patterson <me@iain.cx>
Wed, 7 Jan 2009 11:58:32 +0000 (11:58 +0000)
committerIain Patterson <me@iain.cx>
Wed, 7 Jan 2009 11:58:32 +0000 (11:58 +0000)
git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@169 6be0d1a5-5cfe-0310-89b6-964be062b18b

.profile.d/krb5.bashrc [new file with mode: 0644]

diff --git a/.profile.d/krb5.bashrc b/.profile.d/krb5.bashrc
new file mode 100644 (file)
index 0000000..12b8ea1
--- /dev/null
@@ -0,0 +1,12 @@
+# $Id$
+alias kssh='ssh -o preferredauthentications=gssapi-with-mic'
+alias pssh='ssh -o preferredauthentications=password,keyboard-interactive'
+if [ $UID -gt 0 ]; then
+  if tty -s; then
+    if klist -s; then
+      kinit -R
+    else
+      kinit
+    fi
+  fi
+fi