diff options
author | Stefan Metzmacher <metze@samba.org> | 2020-04-03 16:29:36 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2021-07-05 23:51:43 +0000 |
commit | 7c3bb491baf7d6f10760fb42b34a990e3806df9c (patch) | |
tree | 89fd49138ada8789fbaff8f5561cc9f54348486c /testprogs/blackbox/test_pkinit_heimdal.sh | |
parent | 0388a8f33bdde49f1cc805a0291859203c1a52b4 (diff) | |
download | samba-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-x | testprogs/blackbox/test_pkinit_heimdal.sh | 5 |
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" |