mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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>
This commit is contained in:
parent
0b4a071ed1
commit
c7fd68088d
@ -765,7 +765,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)
|
||||
|
@ -1581,6 +1581,7 @@ MODULE_INIT_FUNC(dsdb)
|
||||
ADD_DSDB_STRING(DSDB_SYNTAX_OR_NAME);
|
||||
ADD_DSDB_STRING(DSDB_CONTROL_DBCHECK);
|
||||
ADD_DSDB_STRING(DSDB_CONTROL_DBCHECK_MODIFY_RO_REPLICA);
|
||||
ADD_DSDB_STRING(DSDB_CONTROL_DBCHECK_FIX_DUPLICATE_LINKS);
|
||||
ADD_DSDB_STRING(DSDB_CONTROL_REPLMD_VANISH_LINKS);
|
||||
ADD_DSDB_STRING(DSDB_CONTROL_PERMIT_INTERDOMAIN_TRUST_UAC_OID);
|
||||
ADD_DSDB_STRING(DSDB_CONTROL_SKIP_DUPLICATES_CHECK_OID);
|
||||
|
Loading…
Reference in New Issue
Block a user