summaryrefslogtreecommitdiff
path: root/source4/scripting/bin
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-02-24 15:09:15 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-26 08:57:30 +0100
commit27e7578e2763f0e9de2e0c94521d552678244cf2 (patch)
treef7f6d7ca9b2cd4463af108dd13b5ba2bac295d1d /source4/scripting/bin
parentd2cd0a783b059fc2a938f7e2a5f5d002e83be967 (diff)
downloadsamba-27e7578e2763f0e9de2e0c94521d552678244cf2.tar.gz
samba-27e7578e2763f0e9de2e0c94521d552678244cf2.tar.bz2
samba-27e7578e2763f0e9de2e0c94521d552678244cf2.zip
s4:provision: use generate_random_password()
metze
Diffstat (limited to 'source4/scripting/bin')
-rwxr-xr-xsource4/scripting/bin/upgradeprovision2
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)