1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-31 01:48:16 +03:00

dbcheck: add --selftest-check-expired-tombstones cmdline option

This will be used by dbcheck tests which operate on static/old provision
dumps in the following commits.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 6f9c5ed8de47bb98e21e8064d8e90f963f2f71ca)
This commit is contained in:
Stefan Metzmacher 2019-03-12 11:02:18 +01:00 committed by Karolin Seeger
parent f6f2efd080
commit b388052af9

View File

@ -74,13 +74,18 @@ class cmd_dbcheck(Command):
Option("--reset-well-known-acls", dest="reset_well_known_acls", default=False, action="store_true", help="reset ACLs on objects with well known default ACL values to the default"),
Option("-H", "--URL", help="LDB URL for database or target server (defaults to local SAM database)",
type=str, metavar="URL", dest="H"),
]
Option("--selftest-check-expired-tombstones",
dest="selftest_check_expired_tombstones", default=False, action="store_true",
help=Option.SUPPRESS_HELP), # This is only used by tests
]
def run(self, DN=None, H=None, verbose=False, fix=False, yes=False,
cross_ncs=False, quiet=False,
scope="SUB", credopts=None, sambaopts=None, versionopts=None,
attrs=None, reindex=False, force_modules=False,
reset_well_known_acls=False, yes_rules=[]):
reset_well_known_acls=False,
selftest_check_expired_tombstones=False,
yes_rules=[]):
lp = sambaopts.get_loadparm()