mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
upgradehelpers.py: let update_machine_account_password() use 120 character passwords
We already changed provision to use 120 character passwords with commit 609ca657652862fd9c81fd11f818efb74f72ff55. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14984 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> (cherry picked from commit 6bb7c0f24918329804b7f4fb71908e8fab99e266)
This commit is contained in:
parent
4872e1af2c
commit
66d8622b64
@ -582,7 +582,7 @@ def update_machine_account_password(samdb, secrets_ldb, names):
|
||||
assert(len(res) == 1)
|
||||
|
||||
msg = ldb.Message(res[0].dn)
|
||||
machinepass = samba.generate_random_machine_password(128, 255)
|
||||
machinepass = samba.generate_random_machine_password(120, 120)
|
||||
mputf16 = machinepass.encode('utf-16-le')
|
||||
msg["clearTextPassword"] = ldb.MessageElement(mputf16,
|
||||
ldb.FLAG_MOD_REPLACE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user