]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python/samba: ldb attribute string fix for wafsamba.tests
authorNoel Power <noel.power@suse.com>
Mon, 1 Oct 2018 13:47:06 +0000 (14:47 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Oct 2018 03:50:27 +0000 (05:50 +0200)
python/samba/dbchecker.py

index d1251a262997e2877473f0f3ad108f98a09d4b56..8b621dc8221cee273f84816b191641d660c613d1 100644 (file)
@@ -2473,7 +2473,7 @@ newSuperior: %s""" % (str(from_dn), str(to_rdn), str(to_base)))
             self.report('ERROR: dsServiceName missing in @ROOTDSE')
             return error_count + 1
 
-        if not obj['dsServiceName'][0].startswith('<GUID='):
+        if not str(obj['dsServiceName'][0]).startswith('<GUID='):
             self.report('ERROR: dsServiceName not in GUID form in @ROOTDSE')
             error_count += 1
             if not self.confirm('Change dsServiceName to GUID form?'):