blackbox: fix samba4.blackbox.kinit test
[garming/samba-autobuild/.git] / testprogs / blackbox / test_kinit.sh
index 981987d03fdd8a8237798747b94293f6cccf3df6..14f1e62c9e8731580a3c3afffa09c0f274506ea5 100755 (executable)
@@ -174,6 +174,7 @@ rm -f $KRB5CCNAME
 testit "kinit with machineaccountccache script" $machineaccountccache $CONFIGURATION $KRB5CCNAME || failed=`expr $failed + 1`
 test_smbclient "Test machine account login with kerberos ccache" 'ls' -k yes || failed=`expr $failed + 1`
 
+rm -f $KRB5CCNAME
 testit "reset password policies" $VALGRIND $samba_tool domain passwordsettings $PWSETCONFIG set --complexity=default --history-length=default --min-pwd-length=default --min-pwd-age=default --max-pwd-age=default || failed=`expr $failed + 1`
 
 rm -f $PREFIX/tmpccache tmpccfile tmppassfile tmpuserpassfile tmpuserccache tmpkpasswdscript