mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
dbcheck: fallback to the default tombstoneLifetime of 180 days
If a domain was provisioned by Windows 2000 this value is missing in the database. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13967 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue May 28 08:32:10 UTC 2019 on sn-devel-184
This commit is contained in:
@ -220,7 +220,10 @@ class dbcheck(object):
|
||||
scope=ldb.SCOPE_BASE,
|
||||
expression="(objectClass=nTDSService)",
|
||||
attrs=["tombstoneLifetime"])
|
||||
self.tombstoneLifetime = int(res[0]["tombstoneLifetime"][0])
|
||||
if "tombstoneLifetime" in res[0]:
|
||||
self.tombstoneLifetime = int(res[0]["tombstoneLifetime"][0])
|
||||
else:
|
||||
self.tombstoneLifetime = 180
|
||||
|
||||
self.compatibleFeatures = []
|
||||
self.requiredFeatures = []
|
||||
|
Reference in New Issue
Block a user