]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Fix "outgoing" test in kinit_trust heimdal
authorIsaac Boukris <iboukris@samba.org>
Tue, 6 Oct 2020 20:33:45 +0000 (22:33 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 7 Jul 2021 14:10:29 +0000 (14:10 +0000)
Found by the test not failing in one-way trust.

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

index f0529667cf889d5b6470c0ba08e47cf8ac8d79c0..52b1ac6589c18b689e7e6deff5c5a99d12c55071 100755 (executable)
@@ -84,7 +84,7 @@ test_smbclient "Test login with user kerberos lowercase realm" 'ls' "$unc" --use
 test_smbclient "Test login with user kerberos lowercase realm 2" 'ls' "$unc" --use-krb5-ccache=$KRB5CCNAME -U$TRUST_USERNAME@$TRUST_REALM%$TRUST_PASSWORD --realm=$lowerrealm || failed=`expr $failed + 1`
 
 # Test the outgoing direction
-SMBCLIENT_UNC="//$TRUST_SERVER.$TRUST_REALM/tmp"
+unc="//$TRUST_SERVER.$TRUST_REALM/tmp"
 test_smbclient "Test user login with the first outgoing secret" 'ls' "$unc" --use-krb5-ccache=$KRB5CCNAME -U$USERNAME@$REALM%$PASSWORD || failed=`expr $failed + 1`
 
 testit_expect_failure "setpassword should not work" $VALGRIND $PYTHON $samba_tool user setpassword "${TRUST_DOMAIN}\$" --random-password || failed=`expr $failed + 1`