summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2016-06-03 18:19:40 +0200
committerAndrew Bartlett <abartlet@samba.org>2016-06-30 03:30:24 +0200
commit8a74d8e26696c66bed66d4c9953f58134a7032dc (patch)
treefd8617e6b142228acae29b9302ff5ea12ff16593 /testprogs
parent5e4928c36638761e21cdea7f760cada1b331d263 (diff)
downloadsamba-8a74d8e26696c66bed66d4c9953f58134a7032dc.tar.gz
test_pkinit_heimdal.sh: add a FILE: prefix to the KRB5CCNAME variable
This makes the tests more robust. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11441 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'testprogs')
-rwxr-xr-xtestprogs/blackbox/test_pkinit_heimdal.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/testprogs/blackbox/test_pkinit_heimdal.sh b/testprogs/blackbox/test_pkinit_heimdal.sh
index a22ade090bc..11211481e90 100755
--- a/testprogs/blackbox/test_pkinit_heimdal.sh
+++ b/testprogs/blackbox/test_pkinit_heimdal.sh
@@ -53,8 +53,10 @@ fi
enctype="-e $ENCTYPE"
unc="//$SERVER/tmp"
-KRB5CCNAME="$PREFIX/tmpccache"
+KRB5CCNAME_PATH="$PREFIX/tmpccache"
+KRB5CCNAME="FILE:$KRB5CCNAME_PATH"
export KRB5CCNAME
+rm -f $KRB5CCNAME_PATH
PKUSER="--pk-user=FILE:$PREFIX/private/tls/admincert.pem,$PREFIX/private/tls/adminkey.pem"
@@ -65,5 +67,5 @@ testit "kinit renew ticket" $samba4kinit --request-pac -R
test_smbclient "Test login with kerberos ccache" 'ls' "$unc" -k yes || failed=`expr $failed + 1`
-rm -f $PREFIX/tmpccache
+rm -f $KRB5CCNAME_PATH
exit $failed