]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
upgradehelpers.py: let update_machine_account_password() use 120 character passwords
authorStefan Metzmacher <metze@samba.org>
Mon, 21 Feb 2022 14:22:06 +0000 (15:22 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 23 Feb 2022 07:50:38 +0000 (07:50 +0000)
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>
python/samba/upgradehelpers.py

index 7f92b45f3fb20d04c67076b384277be0a160424c..febde7cec4018dec4d2bdeb6c944e98fe56c02c5 100644 (file)
@@ -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,