mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
python/samba/tests: py3 port for samba.test.password_hash_ldap
user samba.compat.text_type instead of unicode in py2 text_type is an alias for unicode in py3 text_type is an alias for str (which does nothing if the input is already str) Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
5bb286ab79
commit
1d18ef2656
@ -46,6 +46,7 @@ from samba.ndr import ndr_unpack
|
||||
from samba.dcerpc import drsblobs, drsuapi, misc
|
||||
from samba import drs_utils, net
|
||||
from samba.credentials import Credentials
|
||||
from samba.compat import text_type
|
||||
import binascii
|
||||
import os
|
||||
|
||||
@ -72,7 +73,7 @@ class PassWordHashLDAPTests(PassWordHashTests):
|
||||
req8.destination_dsa_guid = null_guid
|
||||
req8.source_dsa_invocation_id = null_guid
|
||||
req8.naming_context = drsuapi.DsReplicaObjectIdentifier()
|
||||
req8.naming_context.dn = unicode(dn)
|
||||
req8.naming_context.dn = text_type(dn)
|
||||
|
||||
req8.highwatermark = drsuapi.DsReplicaHighWaterMark()
|
||||
req8.highwatermark.tmp_highest_usn = 0
|
||||
|
Reference in New Issue
Block a user