provision: Decrease the length of random machine passwords
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 23 Feb 2021 13:03:25 +0000 (02:03 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 7 Apr 2021 09:18:30 +0000 (09:18 +0000)
commit609ca657652862fd9c81fd11f818efb74f72ff55
tree0e376202d84d5d194ec25988955eadb330edb6a9
parent88b3d3443b3a581ec301430346b3e9bf05d81b5e
provision: Decrease the length of random machine passwords

The current length of 128-255 UTF-16 characters currently causes
generation of crypt() passwords to typically fail. This commit
decreases the length to 120 UTF-16 characters, which is the same as
that used by Windows.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14621

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/join.py
python/samba/provision/__init__.py
python/samba/tests/samba_tool/provision_userPassword_crypt.py
source4/libnet/libnet_vampire.c
source4/scripting/bin/renamedc