summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-02-04 11:41:39 +0100
committerMichael Adam <obnox@samba.org>2013-02-04 18:54:32 +0100
commitdc6c40b193e125e8810cf95129fc99f7d4f6db27 (patch)
treefcec6ba524ba90371b76fffb56258ab8c494af9e /source4/scripting
parent2e7bc87fa54148655ce13a59bd3274fb6285a579 (diff)
downloadsamba-dc6c40b193e125e8810cf95129fc99f7d4f6db27.tar.gz
samba-dc6c40b193e125e8810cf95129fc99f7d4f6db27.tar.bz2
samba-dc6c40b193e125e8810cf95129fc99f7d4f6db27.zip
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
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/provision/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/provision/__init__.py b/source4/scripting/python/samba/provision/__init__.py
index 507582bad5..aac0ee36b2 100644
--- a/source4/scripting/python/samba/provision/__init__.py
+++ b/source4/scripting/python/samba/provision/__init__.py
@@ -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: