+Fri Jan 30 23:49:54 1998 Tom Yu <tlyu@mit.edu>
+
+ * kadmin.exp: Fix to deal with new kpasswd program.
+
Sun Nov 9 10:07:07 1997 Ezra Peisach <epeisach@mit.edu>
* gssftp.exp: Replace "else if" with "elseif" as expect 5.25
# find kpasswd
if ![info exists KPASSWD] {
- set KPASSWD [findfile $objdir/../../kadmin/passwd/kpasswd]
+ set KPASSWD [findfile $objdir/../../clients/kpasswd/kpasswd]
}
# find kdestroy
#--
proc kpasswd_cpw { princ opw npw } {
global KPASSWD
+ global REALMNAME
spawn $KPASSWD $princ
expect_after {
timeout {
fail "kpasswd $princ $npw"
- catch "expect_after"
+# catch "expect_after"
return 0
}
eof {
fail "kpasswd $princ $npw"
- catch "expect_after"
+# catch "expect_after"
return 0
}
}
- expect "Changing password for $princ."
- expect "Old password:" { send "$opw\r" }
- expect "New password:" { send "$npw\r" }
- expect "New password (again):" { send "$npw\r" }
- expect "\r"
- expect "Kerberos password changed."
+# expect "Changing password for $princ."
+# expect "Old password:" { send "$opw\r" }
+# expect "New password:" { send "$npw\r" }
+# expect "New password (again):" { send "$npw\r" }
+ expect "Password for $princ@$REALMNAME:" { send "$opw\r" }
+ expect "Enter new password:" { send "$npw\r" }
+ expect "Enter it again:" { send "$npw\r" }
+# expect "Kerberos password changed."
+ expect "Password changed."
expect_after
expect eof