mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
python/samba: port changes to allow samba.tests.dsdb_lock to work with PY3/PY2
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
596db3a5bb
commit
27df0e81c2
@ -293,7 +293,7 @@ class dbcheck(object):
|
||||
# as the original one, so that on replication we
|
||||
# merge, rather than conflict.
|
||||
proposed_objectguid = dsdb_dn.dn.get_extended_component("GUID")
|
||||
listwko.append(o)
|
||||
listwko.append(str(o))
|
||||
|
||||
if proposed_objectguid is not None:
|
||||
guid_suffix = "\nobjectGUID: %s" % str(misc.GUID(proposed_objectguid))
|
||||
@ -2223,7 +2223,7 @@ newSuperior: %s""" % (str(from_dn), str(to_rdn), str(to_base)))
|
||||
values = set()
|
||||
# check for incorrectly normalised attributes
|
||||
for val in obj[attrname]:
|
||||
values.add(str(val))
|
||||
values.add(val)
|
||||
|
||||
normalised = self.samdb.dsdb_normalise_attributes(self.samdb_schema, attrname, [val])
|
||||
if len(normalised) != 1 or normalised[0] != val:
|
||||
|
Reference in New Issue
Block a user