diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-02-24 15:09:15 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-02-26 08:57:30 +0100 |
commit | 27e7578e2763f0e9de2e0c94521d552678244cf2 (patch) | |
tree | f7f6d7ca9b2cd4463af108dd13b5ba2bac295d1d /source4/scripting/bin/upgradeprovision | |
parent | d2cd0a783b059fc2a938f7e2a5f5d002e83be967 (diff) | |
download | samba-27e7578e2763f0e9de2e0c94521d552678244cf2.tar.gz samba-27e7578e2763f0e9de2e0c94521d552678244cf2.tar.bz2 samba-27e7578e2763f0e9de2e0c94521d552678244cf2.zip |
s4:provision: use generate_random_password()
metze
Diffstat (limited to 'source4/scripting/bin/upgradeprovision')
-rwxr-xr-x | source4/scripting/bin/upgradeprovision | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/bin/upgradeprovision b/source4/scripting/bin/upgradeprovision index e2ee8d053f..1d58f5e2c9 100755 --- a/source4/scripting/bin/upgradeprovision +++ b/source4/scripting/bin/upgradeprovision @@ -875,7 +875,7 @@ def update_machine_account_password(paths,creds,session,names): assert(len(res) == 1) msg = ldb.Message(res[0].dn) - machinepass = glue.generate_random_str(12) + machinepass = glue.generate_random_password(128, 255) msg["userPassword"] = ldb.MessageElement(machinepass, ldb.FLAG_MOD_REPLACE, "userPassword") sam_ldb.modify(msg) |