diff options
author | Stefan Metzmacher <metze@samba.org> | 2018-01-30 09:39:40 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-02-09 09:30:22 +0100 |
commit | 528cee7a3c27c1fc5d4918d87e2f58d4958b08dd (patch) | |
tree | c99096c757f0744b0b58471adbd9361109b18f79 /python/samba | |
parent | c17794d5c7a6080c6a41ddd38cc59a7f5c94f7dc (diff) | |
download | samba-528cee7a3c27c1fc5d4918d87e2f58d4958b08dd.tar.gz |
dbcheck: remove ldb.FLAG_MOD_REPLACE when replacing search results for forward links
Search results don't have an ldb.FLAG_MOD_* flags set.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13228
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit b0bc3f60084e5998dd34aada2ac7377d390affc6)
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 308e4bf0a76..cccc4988139 100644 --- a/python/samba/dbchecker.py +++ b/python/samba/dbchecker.py @@ -968,7 +968,7 @@ newSuperior: %s""" % (str(from_dn), str(to_rdn), str(to_base))) vals.append(str(dsdb_dn)) self.err_recover_forward_links(obj, attrname, vals) # We should continue with the fixed values - obj[attrname] = ldb.MessageElement(vals, ldb.FLAG_MOD_REPLACE, attrname) + obj[attrname] = ldb.MessageElement(vals, 0, attrname) for val in obj[attrname]: dsdb_dn = dsdb_Dn(self.samdb, val, syntax_oid) |