s4-drs: we don't need to decode to utf8 in python dcerpc strings any more
authorAndrew Tridgell <tridge@samba.org>
Thu, 23 Sep 2010 05:35:28 +0000 (22:35 -0700)
committerAndrew Tridgell <tridge@samba.org>
Thu, 23 Sep 2010 07:17:57 +0000 (07:17 +0000)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/scripting/python/samba/drs_utils.py

index 3476763045ebe5f82d03cf1716512cfcda4d2b4e..936bfbb3dc3128b249f2e03db80cacf136f6824c 100644 (file)
@@ -119,7 +119,7 @@ class drs_Replicate:
         req8.destination_dsa_guid           = destination_dsa_guid
         req8.source_dsa_invocation_id      = source_dsa_invocation_id
         req8.naming_context                = drsuapi.DsReplicaObjectIdentifier()
-        req8.naming_context.dn              = dn.decode("utf-8")
+        req8.naming_context.dn              = dn
         req8.highwatermark                  = drsuapi.DsReplicaHighWaterMark()
         req8.highwatermark.tmp_highest_usn  = 0
         req8.highwatermark.reserved_usn            = 0