summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2023-02-08 08:30:56 +0100
committerJule Anger <janger@samba.org>2023-02-24 08:56:14 +0000
commit820970ab5ec1e70af751cfefeea609230a52a058 (patch)
treeab2efe48e328a1f882a8f25dd246c6c082a32d42 /testprogs
parentf15a1413571861eafb7c6a84c70fd684732a1823 (diff)
downloadsamba-820970ab5ec1e70af751cfefeea609230a52a058.tar.gz
testprogs: Use random user names for kpasswd tests
This avoids that subsequent tests because users already exist and cleanup didn't work. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15308 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit a3b80b656f16049772005bd7b00451aaa5df2dd6)
Diffstat (limited to 'testprogs')
-rwxr-xr-xtestprogs/blackbox/test_kpasswd_mit.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/testprogs/blackbox/test_kpasswd_mit.sh b/testprogs/blackbox/test_kpasswd_mit.sh
index 785a8afac68..e6c31f6731c 100755
--- a/testprogs/blackbox/test_kpasswd_mit.sh
+++ b/testprogs/blackbox/test_kpasswd_mit.sh
@@ -55,7 +55,7 @@ export CONFIG
testit "reset password policies beside of minimum password age of 0 days" \
$VALGRIND $PYTHON $samba_tool domain passwordsettings set $CONFIG --complexity=default --history-length=default --min-pwd-length=default --min-pwd-age=0 --max-pwd-age=default || failed=$(expr $failed + 1)
-TEST_USERNAME="samson"
+TEST_USERNAME="$(mktemp -u samson-XXXXXX)"
TEST_PASSWORD="testPaSS@00%"
TEST_PASSWORD_NEW="testPaSS@01%"
TEST_PASSWORD_SHORT="secret"