summaryrefslogtreecommitdiff
path: root/testprogs/blackbox/test_pkinit_heimdal.sh
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2020-04-03 16:29:36 +0200
committerAndrew Bartlett <abartlet@samba.org>2021-07-05 23:51:43 +0000
commit7c3bb491baf7d6f10760fb42b34a990e3806df9c (patch)
tree89fd49138ada8789fbaff8f5561cc9f54348486c /testprogs/blackbox/test_pkinit_heimdal.sh
parent0388a8f33bdde49f1cc805a0291859203c1a52b4 (diff)
downloadsamba-7c3bb491baf7d6f10760fb42b34a990e3806df9c.tar.gz
testprogs: Consistantly use kinit -c $KRB5CCNAME
We want to be really clear which credentials cache we use. The kerberos_kinit() shell function uses this internally. -c is the common option between MIT and Heimdal, and is equivilant to --cache Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Jul 5 23:51:43 UTC 2021 on sn-devel-184
Diffstat (limited to 'testprogs/blackbox/test_pkinit_heimdal.sh')
-rwxr-xr-xtestprogs/blackbox/test_pkinit_heimdal.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/testprogs/blackbox/test_pkinit_heimdal.sh b/testprogs/blackbox/test_pkinit_heimdal.sh
index 02faa4fccea..08ebc7497c4 100755
--- a/testprogs/blackbox/test_pkinit_heimdal.sh
+++ b/testprogs/blackbox/test_pkinit_heimdal.sh
@@ -23,9 +23,9 @@ failed=0
samba4bindir="$BINDIR"
samba4srcdir="$SRCDIR/source4"
-samba4kinit=kinit
+samba4kinit_binary=kinit
if test -x $BINDIR/samba4kinit; then
- samba4kinit=$BINDIR/samba4kinit
+ samba4kinit_binary=$BINDIR/samba4kinit
fi
samba_tool="$samba4bindir/samba-tool"
@@ -53,6 +53,7 @@ unc="//$SERVER/tmp"
KRB5CCNAME_PATH="$PREFIX/tmpccache"
KRB5CCNAME="FILE:$KRB5CCNAME_PATH"
+samba4kinit="$samba4kinit_binary -c $KRB5CCNAME"
export KRB5CCNAME
rm -f $KRB5CCNAME_PATH
PASSFILE_PATH="$PREFIX/tmppassfile"