s4/scripting/bin: PY3 convert servicePrincipalName attr to string
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 30 Oct 2018 12:51:54 +0000 (12:51 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 14 Nov 2018 04:07:17 +0000 (05:07 +0100)
commit48cc8a4e3214a571b2917dc3b677b44cccfa7286
tree247b15a5a51a92c6c3f3d1acc4b1be5f908d1c84
parent8bf82d9f8584673a00529166263b39ff796d1985
s4/scripting/bin: PY3 convert servicePrincipalName attr to string

res[0]["servicePrincipalName"] is an instance of ldb.bytes in PY3
If we wish to get the string value we need to call the custom
str function which attempts to decode the bytes to 'utf8'

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed by: Noel Power <npower@samba.org>
source4/scripting/bin/samba_spnupdate