s4:scripting: use generate_random_machine_password() for machine passwords
authorStefan Metzmacher <metze@samba.org>
Mon, 13 Feb 2017 18:37:09 +0000 (19:37 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 21 Feb 2017 15:09:22 +0000 (16:09 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12262

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/scripting/bin/renamedc

index 44944014c9329afd2c978fcd3dca19c7d33ba92b..f14a837afeed653e9ac08d779b5e08bee0b6e3ae 100755 (executable)
@@ -95,7 +95,7 @@ if __name__ == '__main__':
 
     # Then change password and samaccountname and dnshostname
     msg = ldb.Message(newdn)
-    machinepass = samba.generate_random_password(128, 255)
+    machinepass = samba.generate_random_machine_password(128, 255)
     mputf16 = machinepass.encode('utf-16-le')
 
     account = "%s$" % opts.newname.upper()