s4/dsdb/tests: PY3 fix failing samba4.ldap.notification
authorNoel Power <noel.power@suse.com>
Mon, 19 Nov 2018 18:29:23 +0000 (18:29 +0000)
committerNoel Power <npower@samba.org>
Mon, 10 Dec 2018 09:38:23 +0000 (10:38 +0100)
Convert ldb.bytes object to string for further processing

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/tests/python/notification.py

index 81be0e34b00ab481c53e29a3b0d7e6b4d49e6643..b8e897da910fa824278704358951c08c0ff72154 100755 (executable)
@@ -325,7 +325,7 @@ delete: otherLoginWorkstations
                               attrs=["lDAPDisplayName"],
                               controls=["paged_results:1:2500"])
         for msg in res:
-            va = msg["lDAPDisplayName"][0]
+            va = str(msg["lDAPDisplayName"][0])
             if va in valid_attrs:
                 continue