testprogs: Use own credential cache for test_client_etypes.sh
authorAndreas Schneider <asn@samba.org>
Tue, 20 Sep 2016 22:01:35 +0000 (00:01 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 25 Sep 2016 07:05:27 +0000 (09:05 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
testprogs/blackbox/test_client_etypes.sh

index 57739c6e97e9d10960a7c3715b752ead4f0559ed..98ff73ad6baecc7713b3938d10ece0bdaa2374db 100755 (executable)
@@ -15,6 +15,12 @@ EXPECTED_ETYPES="$6"
 # Load test functions
 . `dirname $0`/subunit.sh
 
+KRB5CCNAME_PATH="$PREFIX/test_client_etypes_krb5ccname"
+rm -f $KRB5CCNAME_PATH
+
+KRB5CCNAME="FILE:$KRB5CCNAME_PATH"
+export KRB5CCNAME
+
 #requires tshark and sha1sum
 if ! which tshark > /dev/null 2>&1 || ! which sha1sum > /dev/null 2>&1 ; then
     subunit_start_test "client encryption types"
@@ -71,5 +77,7 @@ actual_types="`tshark -r $pcap_file  -nVY "kerberos" | \
 testit "verify types" test "x$actual_types" = "x$EXPECTED_ETYPES" || failed=`expr $failed + 1`
 
 rm -rf $BASEDIR/$WORKDIR
+rm -f $KRB5CCNAME_PATH
+
 
 exit $failed