From dc6c40b193e125e8810cf95129fc99f7d4f6db27 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 4 Feb 2013 11:41:39 +0100 Subject: samba-tool/domain provision: add support for utf-8 passwords for --adminpass Signed-off-by: Stefan Metzmacher Reviewed-by: Michael Adam Autobuild-User(master): Michael Adam Autobuild-Date(master): Mon Feb 4 18:54:32 CET 2013 on sn-devel-104 --- source4/scripting/python/samba/provision/__init__.py | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/scripting') 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: -- cgit