From: Barry Jaspan Date: Thu, 26 Sep 1996 21:53:34 +0000 (+0000) Subject: * Makefile.in, remove_changepw_perms.sh, lib/helpers.exp, X-Git-Tag: krb5-1.0-freeze1~298 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=77529ef21b563bd90d7a44082d4b4777c339ec2d;p=krb5.git * Makefile.in, remove_changepw_perms.sh, lib/helpers.exp, vrserver.0/setup-srvtab.exp, v4server.1/access.exp: use $K5ROOT instead of /krb5 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9124 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/v4server/unit-test/ChangeLog b/src/kadmin/v4server/unit-test/ChangeLog index 0c3926ea0..741f5de8a 100644 --- a/src/kadmin/v4server/unit-test/ChangeLog +++ b/src/kadmin/v4server/unit-test/ChangeLog @@ -1,3 +1,9 @@ +Thu Sep 26 17:52:21 1996 Barry Jaspan + + * 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 * adapt to krb5 build system: create Makefile.in, configure.in, diff --git a/src/kadmin/v4server/unit-test/Makefile.in b/src/kadmin/v4server/unit-test/Makefile.in index 3701b504a..0022556f4 100644 --- a/src/kadmin/v4server/unit-test/Makefile.in +++ b/src/kadmin/v4server/unit-test/Makefile.in @@ -6,7 +6,6 @@ check unit-test:: unit-test-setup unit-test-body unit-test-cleanup 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 diff --git a/src/kadmin/v4server/unit-test/lib/helpers.exp b/src/kadmin/v4server/unit-test/lib/helpers.exp index 1b7c5685d..0b7b0eea2 100644 --- a/src/kadmin/v4server/unit-test/lib/helpers.exp +++ b/src/kadmin/v4server/unit-test/lib/helpers.exp @@ -56,7 +56,7 @@ proc myfail { msg } { } 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 @@ -71,7 +71,7 @@ proc server_start { name cmdline should_listen args } { 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 { diff --git a/src/kadmin/v4server/unit-test/remove_changepw_perms.sh b/src/kadmin/v4server/unit-test/remove_changepw_perms.sh index 27d026ff3..226931801 100644 --- a/src/kadmin/v4server/unit-test/remove_changepw_perms.sh +++ b/src/kadmin/v4server/unit-test/remove_changepw_perms.sh @@ -2,7 +2,7 @@ # tcl sucks big fat hairy rocks -ed /krb5/ovsec_adm.acl </dev/null 2>&1 +ed $K5ROOT/ovsec_adm.acl </dev/null 2>&1 g/changepw\/kerberos/s/^/#/ w q diff --git a/src/kadmin/v4server/unit-test/v4server.0/setup-srvtab.exp b/src/kadmin/v4server/unit-test/v4server.0/setup-srvtab.exp index f908ff44b..edba87b7a 100644 --- a/src/kadmin/v4server/unit-test/v4server.0/setup-srvtab.exp +++ b/src/kadmin/v4server/unit-test/v4server.0/setup-srvtab.exp @@ -9,7 +9,7 @@ exp_prog "setup" $kadmin_local "" 0 { "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" { diff --git a/src/kadmin/v4server/unit-test/v4server.1/access.exp b/src/kadmin/v4server/unit-test/v4server.1/access.exp index 4d30fc9c7..f46b960b8 100644 --- a/src/kadmin/v4server/unit-test/v4server.1/access.exp +++ b/src/kadmin/v4server/unit-test/v4server.1/access.exp @@ -17,7 +17,7 @@ proc kill_admin_server {} { } proc start_admin_server {} { - global ovsec_adm_server sleep + global ovsec_adm_server sleep env set max_tries 60 @@ -44,10 +44,12 @@ proc remove_changepw_perms {} { } 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