3 KRB5DIR=${KRB5DIR:-"/usr/kerberos"}
5 $KRB5DIR/bin/klist -5 -s
8 if [ $invalid -eq 0 ]; then
13 # check installed service keytab for root
15 if [ $UID -eq 0 ]; then
16 output=`$KRB5DIR/bin/klist -5 -k`
18 item=`echo $output | egrep "lustre_mds/.*@"`
19 if [ "x$item" != "x" ]; then
20 echo "Using service keytab"
26 echo "***** refresh Kerberos V5 TGT for uid $UID *****"
27 if [ -z "$GSS_PASS" ]; then
35 set spawnid [spawn /bin/bash]
36 send "export PS1=\"user@host $ \" \r"
38 timeout {puts "timeout" ;exit 1}
42 send "$KRB5DIR/bin/kinit\r"
44 timeout {puts "timeout" ;exit 1}
50 timeout {puts "timeout" ;exit 1}