From: Noel Power Date: Thu, 4 Oct 2018 17:29:37 +0000 (+0100) Subject: s4/scripting/bin: blobs needs to be bytes X-Git-Tag: tdb-1.3.17~1232 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60e7aa86d8777a4f5d61f45686ec8cda3a59ea99;p=thirdparty%2Fsamba.git s4/scripting/bin: blobs needs to be bytes Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett --- diff --git a/source4/scripting/bin/samba_upgradeprovision b/source4/scripting/bin/samba_upgradeprovision index 7b48aef463b..6de9d957194 100755 --- a/source4/scripting/bin/samba_upgradeprovision +++ b/source4/scripting/bin/samba_upgradeprovision @@ -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