From: Isaac Boukris Date: Tue, 6 Oct 2020 20:33:45 +0000 (+0200) Subject: selftest: Fix "outgoing" test in kinit_trust heimdal X-Git-Tag: talloc-2.3.3~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=194d726a800e167366b37d69e69d8521df083b18;p=thirdparty%2Fsamba.git selftest: Fix "outgoing" test in kinit_trust heimdal Found by the test not failing in one-way trust. Signed-off-by: Isaac Boukris Reviewed-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- 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`