From: Douglas Bagnall Date: Sat, 27 Oct 2018 22:17:43 +0000 (+1300) Subject: s4/scripting/pfm_verify: PY3: use compat.text_type X-Git-Tag: tdb-1.3.17~1040 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1ba193dd0afdcf1d7320277527b652fcb762d32;p=thirdparty%2Fsamba.git s4/scripting/pfm_verify: PY3: use compat.text_type Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- diff --git a/source4/scripting/devel/pfm_verify.py b/source4/scripting/devel/pfm_verify.py index 8fd10124a4f..a438fb694f6 100755 --- a/source4/scripting/devel/pfm_verify.py +++ b/source4/scripting/devel/pfm_verify.py @@ -35,7 +35,7 @@ from samba.drs_utils import drs_DsBind from samba.samdb import SamDB from samba.auth import system_session from samba.ndr import ndr_pack, ndr_unpack - +from samba.compat import text_type def _samdb_fetch_pfm(samdb): """Fetch prefixMap stored in SamDB using LDB connection""" @@ -78,7 +78,7 @@ def _drs_fetch_pfm(server, samdb, creds, lp): req8.destination_dsa_guid = dest_dsa req8.source_dsa_invocation_id = misc.GUID(samdb.get_invocation_id()) req8.naming_context = drsuapi.DsReplicaObjectIdentifier() - req8.naming_context.dn = unicode(samdb.get_schema_basedn()) + req8.naming_context.dn = text_type(samdb.get_schema_basedn()) req8.highwatermark = drsuapi.DsReplicaHighWaterMark() req8.highwatermark.tmp_highest_usn = 0 req8.highwatermark.reserved_usn = 0