git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea57a20
)
s4:scripting: use generate_random_machine_password() for machine passwords
author
Stefan Metzmacher
<metze@samba.org>
Mon, 13 Feb 2017 18:37:09 +0000
(19:37 +0100)
committer
Ralph 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
patch
|
blob
|
history
diff --git
a/source4/scripting/bin/renamedc
b/source4/scripting/bin/renamedc
index 44944014c9329afd2c978fcd3dca19c7d33ba92b..f14a837afeed653e9ac08d779b5e08bee0b6e3ae 100755
(executable)
--- a/
source4/scripting/bin/renamedc
+++ b/
source4/scripting/bin/renamedc
@@
-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()