summaryrefslogtreecommitdiff
path: root/testprogs/blackbox/test_kinit_trusts_heimdal.sh
diff options
context:
space:
mode:
authorIsaac Boukris <iboukris@samba.org>2020-10-06 22:33:45 +0200
committerAndreas Schneider <asn@cryptomilk.org>2021-07-07 14:10:29 +0000
commit194d726a800e167366b37d69e69d8521df083b18 (patch)
treee092fcb688f1fbd7d8a95255e093cd8eb3cab84f /testprogs/blackbox/test_kinit_trusts_heimdal.sh
parent8d71afb4e6dc53e951ca9f9a298a507f2db2f2b4 (diff)
downloadsamba-194d726a800e167366b37d69e69d8521df083b18.tar.gz
selftest: Fix "outgoing" test in kinit_trust heimdal
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>
Diffstat (limited to 'testprogs/blackbox/test_kinit_trusts_heimdal.sh')
-rwxr-xr-xtestprogs/blackbox/test_kinit_trusts_heimdal.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/testprogs/blackbox/test_kinit_trusts_heimdal.sh b/testprogs/blackbox/test_kinit_trusts_heimdal.sh
index f0529667cf8..52b1ac6589c 100755
--- a/testprogs/blackbox/test_kinit_trusts_heimdal.sh
+++ b/testprogs/blackbox/test_kinit_trusts_heimdal.sh
@@ -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`