This allows us more room to test with different account names.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14874
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14881
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit
a5a6296e57cab2b53617d997c37b4e92d4124cc7)
# An identifier to ensure created accounts have unique names. Windows
# caches accounts based on usernames, so account names being different
# across test runs avoids previous test runs affecting the results.
- cls.account_base = f'krb5_{secrets.token_hex(5)}_'
+ cls.account_base = f'{secrets.token_hex(4)}_'
cls.account_id = 0
# A set containing DNs of accounts created as part of testing.