Thanks Rowland,
> The thing I am worried about is where it says above 'view entries',
I
> do hope that is very bad English
you're absolutely right - my bad. s/view/few/
that's what happens when you constantly switch between english and
german and then write emails late at night ...
Am 16.07.2024 um 22:31 schrieb Rowland Penny via samba:> That is a tombstone record, you might be able to remove it, see:
>
> samba-tool domain tombstones expunge --help
I didn't know about the tombstone expunge command yet, so thanks for the
hint.
samba-tool domain tombstones expunge --tombstone-lifetime=0
removed 10 objects.
Trying to run dbcheck again
samba-tool dbcheck --cross-ncs
now fails due to entries from the previous main dc
(CN=NAS2,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=company,DC=intra)
which should no longer exist since nas2 had been demoted via samba-tool
~2 years ago.
Do you have also a tip how to remove these orphaned entries?
WARNING: no target object found for GUID component for DN value
msDS-NC-Replica-Locations in object
CN=c5fb749d-3533-40b2-bf5c-51149a05014f,CN=Partitions,CN=Configuration,DC=company,DC=intra
-
<GUID=4016b5de-f592-40a0-93a2-2b899c5faf3a>;<RMD_ADDTIME=130893352390000000>;<RMD_CHANGETIME=130893352390000000>;<RMD_FLAGS=0>;<RMD_INVOCID=02e02fd7-f74c-42c9-80d5-fe8a2db3187c>;<RMD_LOCAL_USN=5360>;<RMD_ORIGINATING_USN=3631>;<RMD_VERSION=0>;CN=NTDS
Settings,CN=NAS2,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=company,DC=intra
WARNING: target DN is deleted for msDS-NC-Replica-Locations in object
CN=c5fb749d-3533-40b2-bf5c-51149a05014f,CN=Partitions,CN=Configuration,DC=company,DC=intra
-
<GUID=4016b5de-f592-40a0-93a2-2b899c5faf3a>;<RMD_ADDTIME=130893352390000000>;<RMD_CHANGETIME=130893352390000000>;<RMD_FLAGS=0>;<RMD_INVOCID=02e02fd7-f74c-42c9-80d5-fe8a2db3187c>;<RMD_LOCAL_USN=5360>;<RMD_ORIGINATING_USN=3631>;<RMD_VERSION=0>;CN=NTDS
Settings,CN=NAS2,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=company,DC=intra
Target GUID points at deleted DN
'<GUID=4016b5de-f592-40a0-93a2-2b899c5faf3a>;<RMD_ADDTIME=130893352390000000>;<RMD_CHANGETIME=130893352390000000>;<RMD_FLAGS=0>;<RMD_INVOCID=02e02fd7-f74c-42c9-80d5-fe8a2db3187c>;<RMD_LOCAL_USN=5360>;<RMD_ORIGINATING_USN=3631>;<RMD_VERSION=0>;CN=NTDS
Settings,CN=NAS2,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=company,DC=intra'
Not removing
WARNING: no target object found for GUID component for DN value
msDS-NC-Replica-Locations in object
CN=6c729f5e-29bd-417d-8479-890aff81a87b,CN=Partitions,CN=Configuration,DC=company,DC=intra
-
<GUID=4016b5de-f592-40a0-93a2-2b899c5faf3a>;<RMD_ADDTIME=130893352390000000>;<RMD_CHANGETIME=130893352390000000>;<RMD_FLAGS=0>;<RMD_INVOCID=02e02fd7-f74c-42c9-80d5-fe8a2db3187c>;<RMD_LOCAL_USN=5343>;<RMD_ORIGINATING_USN=3630>;<RMD_VERSION=0>;CN=NTDS
Settings,CN=NAS2,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=company,DC=intra
WARNING: target DN is deleted for msDS-NC-Replica-Locations in object
CN=6c729f5e-29bd-417d-8479-890aff81a87b,CN=Partitions,CN=Configuration,DC=company,DC=intra
-
<GUID=4016b5de-f592-40a0-93a2-2b899c5faf3a>;<RMD_ADDTIME=130893352390000000>;<RMD_CHANGETIME=130893352390000000>;<RMD_FLAGS=0>;<RMD_INVOCID=02e02fd7-f74c-42c9-80d5-fe8a2db3187c>;<RMD_LOCAL_USN=5343>;<RMD_ORIGINATING_USN=3630>;<RMD_VERSION=0>;CN=NTDS
Settings,CN=NAS2,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=company,DC=intra
Target GUID points at deleted DN
'<GUID=4016b5de-f592-40a0-93a2-2b899c5faf3a>;<RMD_ADDTIME=130893352390000000>;<RMD_CHANGETIME=130893352390000000>;<RMD_FLAGS=0>;<RMD_INVOCID=02e02fd7-f74c-42c9-80d5-fe8a2db3187c>;<RMD_LOCAL_USN=5343>;<RMD_ORIGINATING_USN=3630>;<RMD_VERSION=0>;CN=NTDS
Settings,CN=NAS2,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=company,DC=intra'
Not removing
ERROR(ldb): uncaught exception - ldb_wait from (null) with LDB_WAIT_ALL:
Operations error (1)
File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py",
line
186, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python3/dist-packages/samba/netcmd/dbcheck.py", line
169, in run
error_count = chk.check_database(DN=DN, scope=search_scope,
File "/usr/lib/python3/dist-packages/samba/dbchecker.py", line 255,
in check_database
error_count += self.check_object(object.dn, requested_attrs=attrs)
File "/usr/lib/python3/dist-packages/samba/dbchecker.py", line
2310,
in check_object
res = self.samdb.search(base=dn, scope=ldb.SCOPE_BASE,