diff options
author | Stefan Metzmacher <metze@samba.org> | 2019-03-19 13:05:16 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2019-03-21 16:42:19 +0000 |
commit | dd6f0dad218ec1d5aa38ea8aa6848ec81035cb3f (patch) | |
tree | e6208634fc727a3fc1a022cefb4acdba127208b4 /python/samba | |
parent | 52bf5c25261e343d3c1d4ea1a414ab74cf75d76c (diff) | |
download | samba-dd6f0dad218ec1d5aa38ea8aa6848ec81035cb3f.tar.gz |
dbcheck: use the str() value of the "name" attribute
We do the same with the rdn attribute value
and we need the same logic on both in order to
check they are the same.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13816
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
Diffstat (limited to 'python/samba')
-rw-r--r-- | python/samba/dbchecker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/dbchecker.py b/python/samba/dbchecker.py index 98508192c10..c4747811c76 100644 --- a/python/samba/dbchecker.py +++ b/python/samba/dbchecker.py @@ -2311,7 +2311,7 @@ newSuperior: %s""" % (str(from_dn), str(to_rdn), str(to_base))) self.report("ERROR: Not fixing num_values(%d) for '%s' on '%s'" % (len(obj[attrname]), attrname, str(obj.dn))) else: - name_val = obj[attrname][0] + name_val = str(obj[attrname][0]) if str(attrname).lower() == str(obj.dn.get_rdn_name()).lower(): object_rdn_attr = attrname |