From 1aa765d344e148826c75d65c502ee45bc9e8f42c Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 20 Sep 2016 09:46:34 +0200 Subject: [PATCH] testprogs: Use better KRB5CCNAME in test_password_settings.sh Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- testprogs/blackbox/test_password_settings.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/testprogs/blackbox/test_password_settings.sh b/testprogs/blackbox/test_password_settings.sh index 9436e3039b9..97adb3c9db2 100755 --- a/testprogs/blackbox/test_password_settings.sh +++ b/testprogs/blackbox/test_password_settings.sh @@ -87,6 +87,8 @@ testit "kinit with user password" \ test_smbclient "Test login with user kerberos ccache" \ "ls" "$SMB_UNC" -k yes || failed=`expr $failed + 1` +rm -f $KRB5CCNAME_PATH + ########################################################### ### Change the users password ########################################################### @@ -114,6 +116,8 @@ testit_expect_failure "Test login with user kerberos ccache, but wrong password testit_expect_failure "Test login with user kerberos ccache, but old password specified" \ $VALGRIND $smbclient //$SERVER/tmp -c 'ls' -k yes -U$TEST_PRINCIPAL%$TEST_PASSWORD_OLD && failed=`expr $failed + 1` +rm -f $KRB5CCNAME_PATH + ########################################################### ### Set the password with smbpasswd ########################################################### @@ -150,6 +154,8 @@ TEST_PASSWORD_NEW="testPaSS@05%" test_smbclient "Test login with user kerberos" 'ls' "$SMB_UNC" -k yes -U$TEST_PRINCIPAL%$TEST_PASSWORD || failed=`expr $failed + 1` +rm -f $KRB5CCNAME_PATH + cat > $PREFIX/tmpsmbpasswdscript <