+Thu Sep 26 17:52:21 1996 Barry Jaspan <bjaspan@mit.edu>
+
+ * Makefile.in, remove_changepw_perms.sh, lib/helpers.exp,
+ vrserver.0/setup-srvtab.exp, v4server.1/access.exp: use $K5ROOT
+ instead of /krb5
+
Mon Sep 23 15:34:56 1996 Barry Jaspan <bjaspan@mit.edu>
* adapt to krb5 build system: create Makefile.in, configure.in,
unit-test-setup::
$(ENV_SETUP) $(START_SERVERS_LOCAL) -v4files -kdcport 750 -keysalt des-cbc-crc:v4
- $(ENV_SETUP) $(LOCAL_MAKE_KEYTAB) -princ changepw/kerberos /krb5/ovsec_adm.srvtab
unit-test-body::
$(ENV_SETUP) $(RUNTEST) VFOURSERVER=../kadmind4 --tool v4server
}
proc server_start { name cmdline should_listen args } {
- global spawn_id server_id
+ global spawn_id server_id env
global VFOURSERVER
global mytest_status
global sleep hostname
verbose "Couldn't connect to V4 kpasswd server; retrying ($num_tries so far)."
}
- spawn $VFOURSERVER $cmdline
+ spawn $VFOURSERVER -k $env(K5ROOT)/ovsec_adm.srvtab $cmdline
set server_id $spawn_id
foreach test $args {
# tcl sucks big fat hairy rocks
-ed /krb5/ovsec_adm.acl <<EOF >/dev/null 2>&1
+ed $K5ROOT/ovsec_adm.acl <<EOF >/dev/null 2>&1
g/changepw\/kerberos/s/^/#/
w
q
"already exists" {}
} {
"kadmin.local:" {
- send "ktadd -k /krb5/ovsec_adm.srvtab changepw/kerberos\n"
+ send "ktadd -k $env(K5ROOT)/ovsec_adm.srvtab changepw/kerberos\n"
}
} {
-re "Entry for principal changepw/kerberos .* added to keytab" {
}
proc start_admin_server {} {
- global ovsec_adm_server sleep
+ global ovsec_adm_server sleep env
set max_tries 60
}
proc set_changepw_perms { perms } {
+ global env
+
remove_changepw_perms
exec echo "changepw/kerberos@SECURE-TEST.OV.COM $perms" \
- >> /krb5/ovsec_adm.acl
+ >> $env(K5ROOT)/ovsec_adm.acl
}
# start off with a dead admin server