s4/scripting: PY2/PY3 port for samba4.blackbox.upgradeprovision.current
authorNoel Power <noel.power@suse.com>
Mon, 27 Aug 2018 12:08:26 +0000 (13:08 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Oct 2018 03:50:27 +0000 (05:50 +0200)
commit0febd003b5762339e491017afe65661b2709ef97
treef498c465ec2d3edc69ba6640cea499eafe23b0ca
parent557ff7b7fffc86718b27fbdb3c3b34f894b5f593
s4/scripting: PY2/PY3 port for samba4.blackbox.upgradeprovision.current

o Fix various ldb attribute that need to be converted to string
o dict has no 'has_key' method
o ndr_unpack needs bytes not string
o b64encode needs bytes (so open file with binary mode)
o StandardError was removed in python3 use Exception instead
o fix octal literals
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/provision/__init__.py
source4/scripting/bin/samba_upgradeprovision