diff options
author | Noel Power <noel.power@suse.com> | 2018-05-04 15:30:22 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-05-13 00:24:35 +0200 |
commit | 26c4084ad2d5f35d4e35026c96150759d062969a (patch) | |
tree | a80006fe83ecb05fdfcc63d3e7fc5ab1f81e5f96 /auth | |
parent | c50ccc714a1871ef6eaa3bfc9b16c232127d3fad (diff) | |
download | samba-26c4084ad2d5f35d4e35026c96150759d062969a.tar.gz |
auth/credentials/test: py2/py3 compat always decode result of b64encode
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sun May 13 00:24:35 CEST 2018 on sn-devel-144
Diffstat (limited to 'auth')
-rwxr-xr-x | auth/credentials/tests/bind.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/credentials/tests/bind.py b/auth/credentials/tests/bind.py index 8b08b4a709a..e612dfc7d8a 100755 --- a/auth/credentials/tests/bind.py +++ b/auth/credentials/tests/bind.py @@ -96,7 +96,7 @@ operatingSystem: Windows Server 2003 dn: """ + self.computer_dn + """ changetype: modify replace: unicodePwd -unicodePwd:: """ + base64.b64encode("\"P@ssw0rd\"".encode('utf-16-le')) + """ +unicodePwd:: """ + base64.b64encode(u"\"P@ssw0rd\"".encode('utf-16-le')).decode('utf8') + """ """) # do a simple bind and search with the machine account |