mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
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
This commit is contained in:
parent
c50ccc714a
commit
26c4084ad2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user