+Tue Aug 20 13:33:29 1996 Barry Jaspan <bjaspan@mit.edu>
+
+ * Makefile.ov, helpers.exp, v4server.1/change-password.exp: use
+ kadmin.local instead of kdb5_edit
+
Mon Jul 15 17:15:51 1996 Marc Horowitz <marc@mit.edu>
* helpers.exp (exp_prog): the check for non-newline-terminated
$(LOCAL_MAKE_KEYTAB) -princ changepw/kerberos /krb5/ovsec_adm.srvtab
unit-test-body::
- $(RUNTEST) VFOURSERVER=../kadmind4 --tool v4server \
- KDBFIVE_EDIT=../../../admin/edit/kdb5_edit
+ $(RUNTEST) VFOURSERVER=../kadmind4 --tool v4server
unit-test-cleanup::
$(STOP_SERVERS_LOCAL) -v4files
}
proc fix_salt { name fullname oldpw newpw } {
- global kdb5_edit
+ global kadmin_local
- exp_prog "$name: kdb5_edit" $kdb5_edit "" 0 {
- "kdb5_edit:" { send "cpw $fullname\n" }
+ exp_prog "$name: kadmin.local" $kadmin_local "" 0 {
+ "kadmin.local:" { send "cpw $fullname\n" }
} {
- "Enter password:" { send "$newpw\n" }
+ "Enter password for principal \"$fullname\":" {
+ send "$newpw\n"
+ }
} {
- "Re-enter password for verification:" { send "$newpw\n" }
+ "Re-enter password for principal \"$fullname\":" {
+ send "$newpw\n"
+ }
} {
- "kdb5_edit:" { send "quit\n" }
+ # if we get cannot reuse pw, the salt is already right
+ -re "Password .* changed." { send "quit\n" }
+ -re "Cannot reuse password" { send "quit\n" }
}
}