samba-tool: Fix error when provisioning with 'password hash userPassword schemes=CryptSHA256'
This attempts to fix bug #14621 where provisioning a domain would fail when using the aforementioned option. This change decreases the length of randomly-generated machine passwords to 240 bytes, the same as used by Windows.
Checklist
-
Commits have Signed-off-by:
with name/author being identical to the commit author -
(optional) This MR is just one part towards a larger feature. -
(optional, if backport required) Bugzilla bug filed and BUG:
tag added -
Test suite updated with functionality tests -
Test suite updated with negative tests -
Documentation updated -
CI timeout is 3h or higher (see Settings/CICD/General pipelines/ Timeout)
Reviewer's checklist:
-
There is a test suite reasonably covering new functionality or modifications -
Function naming, parameters, return values, types, etc., are consistent and according to README.Coding.md
-
This feature/change has adequate documentation added -
No obvious mistakes in the code
Edited by Jennifer Sutton