testprogs: Specify the KRB5CCNAME on the command line
authorAndreas Schneider <asn@samba.org>
Wed, 15 Mar 2023 07:08:45 +0000 (08:08 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 6 Apr 2023 13:45:35 +0000 (13:45 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15336

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
testprogs/blackbox/test_export_keytab_mit.sh

index 6337662f47f9209b5b4ee22bead4e226b19e92b6..6441f82b5180e3604d153a9cdd46f4abf8a73541 100755 (executable)
@@ -112,11 +112,11 @@ KRB5CCNAME="$PREFIX/tmpuserccache"
 export KRB5CCNAME
 
 testit "kinit with keytab as user" $VALGRIND $samba_kinit -k -t $PREFIX/tmpkeytab-all $TEST_USER@$REALM || failed=$(expr $failed + 1)
-test_smbclient "Test login with user kerberos ccache" 'ls' --use-kerberos=required || failed=$(expr $failed + 1)
+test_smbclient "Test login with user kerberos ccache" 'ls' --use-krb5-ccache="${KRB5CCNAME}" || failed=$(expr $failed + 1)
 $samba_kdestroy
 
 testit "kinit with keytab as user (one princ)" $VALGRIND $samba_kinit -k -t $PREFIX/tmpkeytab-user-princ $TEST_USER@$REALM || failed=$(expr $failed + 1)
-test_smbclient "Test login with user kerberos ccache (one princ)" 'ls' --use-kerberos=required || failed=$(expr $failed + 1)
+test_smbclient "Test login with user kerberos ccache (one princ)" 'ls' --use-krb5-ccache="${KRB5CCNAME}" || failed=$(expr $failed + 1)
 $samba_kdestroy
 
 KRB5CCNAME="$PREFIX/tmpadminccache"