s4/dsdb: python3 api should take 'bytes'
authorNoel Power <noel.power@suse.com>
Thu, 22 Feb 2018 12:49:36 +0000 (12:49 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 23 Mar 2018 06:28:25 +0000 (07:28 +0100)
commit0d65c1ef65b1485ae772ac87a52bb58611d45c72
treeda1ab66468e3f9f45202335bf9666da744ea1cab
parent4c02d5cafe2e0a8dc97bd161bcb5b9af5b151dd4
s4/dsdb: python3 api should take 'bytes'

Attributes are properly represented by 'bytes' and *maybe* can be
converted into strings (if they are text).
py_dsdb_normalise_attributes currently expects strings, this is fine
in python2 however in python3 we need to actually pass a 'bytes'
class.

Signed-off-by: Noel Power <noel.power@suse.com>
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/pydsdb.c