diff options
author | Stefan Metzmacher <metze@samba.org> | 2017-02-17 00:10:12 +0100 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2017-02-21 16:09:22 +0100 |
commit | 99b8d6beccf4d3d24f9d87a4d8e5eadfe0e0dd33 (patch) | |
tree | 1dad2a620ed1793e716e4b3dd2c4f2cf575c6cc5 /python | |
parent | 0ed258bfe48995db6b345cc14e1747c4af9d076d (diff) | |
download | samba-99b8d6beccf4d3d24f9d87a4d8e5eadfe0e0dd33.tar.gz |
python/samba: provision_dns_add_samba.ldif expects utf-16-le passwords
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>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/join.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/join.py b/python/samba/join.py index 058fa083bb4..64854681fb5 100644 --- a/python/samba/join.py +++ b/python/samba/join.py @@ -708,7 +708,7 @@ class dc_join(object): {"DNSDOMAIN": ctx.dnsdomain, "DOMAINDN": ctx.base_dn, "HOSTNAME" : ctx.myname, - "DNSPASS_B64": b64encode(ctx.dnspass), + "DNSPASS_B64": b64encode(ctx.dnspass.encode('utf-16-le')), "DNSNAME" : ctx.dnshostname})) for changetype, msg in recs: assert changetype == ldb.CHANGETYPE_NONE |