test_pkinit_heimdal.sh: add a FILE: prefix to the KRB5CCNAME variable
authorStefan Metzmacher <metze@samba.org>
Fri, 3 Jun 2016 16:19:40 +0000 (18:19 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 30 Jun 2016 01:30:24 +0000 (03:30 +0200)
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>
testprogs/blackbox/test_pkinit_heimdal.sh

index a22ade090bc885e58f25f142116cbd08a0f37473..11211481e9089e502dc04d86843291fd522c1749 100755 (executable)
@@ -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