mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4:scripting: use generate_random_machine_password() for machine passwords
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>
This commit is contained in:
parent
ea57a204a1
commit
383432d2cd
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user