mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
samba-tool/domain provision: add support for utf-8 passwords for --adminpass
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Mon Feb 4 18:54:32 CET 2013 on sn-devel-104
This commit is contained in:
parent
2e7bc87fa5
commit
dc6c40b193
@ -2137,6 +2137,7 @@ def provision(logger, session_info, credentials, smbconf=None,
|
||||
adminpass = samba.generate_random_password(12, 32)
|
||||
adminpass_generated = True
|
||||
else:
|
||||
adminpass = unicode(adminpass, 'utf-8')
|
||||
adminpass_generated = False
|
||||
|
||||
if samdb_fill == FILL_FULL:
|
||||
|
Loading…
x
Reference in New Issue
Block a user