diff options
author | Andrew Bartlett <abartlet@samba.org> | 2018-06-29 14:53:19 +1200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-11-05 09:33:28 +0100 |
commit | d8c9c93c90b70455ad39ae4acd78a8f71c290fb7 (patch) | |
tree | 8357a8bbb02421bbddc9911079a6cadb20b2c513 /python | |
parent | 3587cca9487074304b1fd7b8201cabff5a36ccab (diff) | |
download | samba-d8c9c93c90b70455ad39ae4acd78a8f71c290fb7.tar.gz |
dbcheck: Use symbolic control name for DSDB_CONTROL_DBCHECK_FIX_DUPLICATE_LINKS
While we do not wish to encourage use of this control, manually typed OIDs are
even more trouble, so pass out via pydsdb.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
(cherry picked from commit c7fd68088d84232a2f4074ca278b5448ef624afd)
Diffstat (limited to 'python')
-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 b2b8b0c9558..df2f6f614a3 100644 --- a/python/samba/dbchecker.py +++ b/python/samba/dbchecker.py @@ -759,7 +759,7 @@ newSuperior: %s""" % (str(from_dn), str(to_rdn), str(to_base))) m = ldb.Message() m.dn = obj.dn m['value'] = ldb.MessageElement(forward_vals, ldb.FLAG_MOD_REPLACE, forward_attr) - if self.do_modify(m, ["local_oid:1.3.6.1.4.1.7165.4.3.19.2:1"], + if self.do_modify(m, ["local_oid:%s:1" % dsdb.DSDB_CONTROL_DBCHECK_FIX_DUPLICATE_LINKS], "Failed to fix duplicate links in attribute '%s'" % forward_attr): self.report("Fixed duplicate links in attribute '%s'" % (forward_attr)) duplicate_cache_key = "%s:%s" % (str(obj.dn), forward_attr) |