Whamcloud - gitweb
LU-17402 kernel: update dotdot patch path for RHEL 8.10
[fs/lustre-release.git] / lustre / tests / krb5_login.sh
index 31ad933..a8868a8 100755 (executable)
@@ -1,6 +1,4 @@
 #!/bin/bash
-# vim:expandtab:shiftwidth=4:softtabstop=4:tabstop=4:
-
 #
 # krb5_login.sh - obtain and cache Kerberos ticket-granting ticket
 #
@@ -28,32 +26,7 @@ echo "***** refresh Kerberos V5 TGT for uid $UID *****"
 if [ -z "$GSS_PASS" ]; then
     kinit
 else
-    expect <<EOF
-set timeout 30 
-
-log_user 1 
-
-set spawnid [spawn /bin/bash]
-send "export PS1=\"user@host $ \" \r"
-expect {
-    timeout {puts "timeout" ;exit 1}
-    "user@host $ "
-}
-
-send "kinit\r"
-expect {
-    timeout {puts "timeout" ;exit 1}
-    "Password for "
-}
-
-send "$GSS_PASS\r"
-expect {
-    timeout {puts "timeout" ;exit 1}
-    "user@host $ "
-}
-
-exit 0
-EOF
+    echo $GSS_PASS | kinit
 fi
 ret=$?
 exit $ret