From 51cebd4ba6930e003176b55c87df64bfc80e20c6 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 21 Mar 2023 09:14:18 +0100 Subject: [PATCH] testprogs: Remove unused test_kinit_trusts_(heimdal|mit).sh Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- testprogs/blackbox/test_kinit_trusts_heimdal.sh | 162 -------------------- testprogs/blackbox/test_kinit_trusts_mit.sh | 191 ------------------------ 2 files changed, 353 deletions(-) delete mode 100755 testprogs/blackbox/test_kinit_trusts_heimdal.sh delete mode 100755 testprogs/blackbox/test_kinit_trusts_mit.sh diff --git a/testprogs/blackbox/test_kinit_trusts_heimdal.sh b/testprogs/blackbox/test_kinit_trusts_heimdal.sh deleted file mode 100755 index aa5cf30e67a..00000000000 --- a/testprogs/blackbox/test_kinit_trusts_heimdal.sh +++ /dev/null @@ -1,162 +0,0 @@ -#!/bin/sh -# Copyright (C) 2015 Stefan Metzmacher - -if [ $# -lt 14 ]; then - cat <$PREFIX/tmppassfile -testit "kinit with password" \ - $samba4kinit $enctype --password-file=$PREFIX/tmppassfile \ - --request-pac $TRUST_USERNAME@$TRUST_REALM || \ - failed=$((failed + 1)) -test_smbclient "Test login with user kerberos ccache" \ - 'ls' "$unc" --use-krb5-ccache=$KRB5CCNAME || \ - failed=$((failed + 1)) -rm -rf $KRB5CCNAME_PATH - -testit "kinit with password and two minute lifetime" \ - $samba4kinit $enctype --password-file=$PREFIX/tmppassfile \ - --request-pac --server=krbtgt/$REALM@$TRUST_REALM --lifetime=2m \ - $TRUST_USERNAME@$TRUST_REALM || \ - failed=$((failed + 1)) -test_smbclient "Test login with user kerberos ccache and two minute lifetime" 'ls' "$unc" --use-krb5-ccache=$KRB5CCNAME || failed=`(failed + 1)` -rm -rf $KRB5CCNAME_PATH - -# Test with smbclient4 -smbclient="$samba4bindir/smbclient4" -testit "kinit with password" \ - $samba4kinit $enctype --password-file=$PREFIX/tmppassfile \ - --request-pac $TRUST_USERNAME@$TRUST_REALM || \ - failed=$((failed + 1)) -test_smbclient "Test login with user kerberos ccache (smbclient4)" \ - 'ls' "$unc" --use-krb5-ccache=$KRB5CCNAME || \ - failed=$((failed + 1)) -rm -rf $KRB5CCNAME_PATH - -testit "kinit with password (enterprise style)" \ - $samba4kinit $enctype --enterprise --password-file=$PREFIX/tmppassfile \ - --request-pac $TRUST_USERNAME@$TRUST_REALM || \ - failed=$((failed + 1)) -smbclient="$samba4bindir/smbclient" -test_smbclient "Test login with user kerberos ccache" \ - 'ls' "$unc" --use-krb5-ccache=$KRB5CCNAME || \ - failed=$((failed + 1)) - -if test x"${TYPE}" = x"forest"; then - testit "kinit with password (upn enterprise style)" \ - $samba4kinit $enctype --enterprise \ - --password-file=$PREFIX/tmppassfile --request-pac \ - testdenied_upn@${TRUST_REALM}.upn || \ - failed=$((failed + 1)) - test_smbclient "Test login with user kerberos ccache" \ - 'ls' "$unc" --use-krb5-ccache=$KRB5CCNAME || \ - failed=$((failed + 1)) -fi - -testit "kinit with password (windows style)" \ - $samba4kinit $enctype --renewable --windows \ - --password-file=$PREFIX/tmppassfile --request-pac \ - $TRUST_USERNAME@$TRUST_REALM || \ - failed=$((failed + 1)) -test_smbclient "Test login with user kerberos ccache" \ - 'ls' "$unc" --use-krb5-ccache=$KRB5CCNAME || \ - failed=$((failed + 1)) - -testit "kinit renew ticket" \ - $samba4kinit $enctype --request-pac -R - -test_smbclient "Test login with kerberos ccache" \ - 'ls' "$unc" --use-krb5-ccache=$KRB5CCNAME || \ - failed=$((failed + 1)) - -testit "check time with kerberos ccache" \ - $VALGRIND $PYTHON $samba_tool time $SERVER.$REALM $CONFIGURATION \ - -k yes "$@" || \ - failed=$((failed + 1)) - -lowerrealm=$(echo $TRUST_REALM | tr '[A-Z]' '[a-z]') -test_smbclient "Test login with user kerberos lowercase realm" \ - 'ls' "$unc" \ - --use-krb5-ccache=$KRB5CCNAME \ - -U$TRUST_USERNAME@$lowerrealm%$TRUST_PASSWORD || \ - failed=$((failed + 1)) -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=$((failed + 1)) - -# Test the outgoing direction -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=$((failed + 1)) - -testit_expect_failure "setpassword should not work" \ - $VALGRIND $PYTHON $samba_tool user setpassword "${TRUST_DOMAIN}\$" \ - --random-password || \ - failed=$((failed + 1)) - -testit "wbinfo ping dc" \ - $VALGRIND $wbinfo --ping-dc --domain=$TRUST_DOMAIN || \ - failed=$((failed + 1)) -testit "wbinfo change outgoing trust pw" \ - $VALGRIND $wbinfo --change-secret --domain=$TRUST_DOMAIN || \ - failed=$((failed + 1)) -testit "wbinfo check outgoing trust pw" \ - $VALGRIND $wbinfo --check-secret --domain=$TRUST_DOMAIN || \ - failed=$((failed + 1)) - -test_smbclient "Test user login with the changed outgoing secret" \ - 'ls' "$unc" --use-kerberos=required -U$USERNAME@$REALM%$PASSWORD || \ - failed=$((failed + 1)) - -rm -f $PREFIX/tmpccache $PREFIX/tmppassfile -exit $failed diff --git a/testprogs/blackbox/test_kinit_trusts_mit.sh b/testprogs/blackbox/test_kinit_trusts_mit.sh deleted file mode 100755 index be437e083a8..00000000000 --- a/testprogs/blackbox/test_kinit_trusts_mit.sh +++ /dev/null @@ -1,191 +0,0 @@ -#!/bin/sh -# Blackbox tests for kinit and trust validation -# Copyright (c) 2015 Stefan Metzmacher -# Copyright (c) 2016 Andreas Schneider - -if [ $# -lt 13 ]; then - cat <$PREFIX/tmpkinitscript <