s4/scripting/bin: blobs needs to be bytes
authorNoel Power <noel.power@suse.com>
Thu, 4 Oct 2018 17:29:37 +0000 (18:29 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Oct 2018 03:50:28 +0000 (05:50 +0200)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/scripting/bin/samba_upgradeprovision

index 7b48aef463bbde14c518ec1683d04b1f71ce7eb6..6de9d957194dbe73a4111ffc14d0c770628670df 100755 (executable)
@@ -1186,7 +1186,7 @@ def check_updated_sd(ref_sam, cur_sam, names):
                                 controls=["search_options:1:2"])
     hash = {}
     for i in range(0, len(reference)):
-        refsd_blob = str(reference[i]["nTSecurityDescriptor"])
+        refsd_blob = reference[i]["nTSecurityDescriptor"][0]
         hash[str(reference[i]["dn"]).lower()] = refsd_blob