mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
selftest: Print link meta-data when developer debugging is used
For Windows, DRS is the only way to see the RMD_VERSION of a link, or to tell what inactive links the DC. Add some debug to display this information. By default, this debug is turned off. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Oct 20 08:01:35 CEST 2017 on sn-devel-144
This commit is contained in:
parent
9b3b09ce41
commit
da8af833cf
@ -253,10 +253,22 @@ class DrsBaseTestCase(SambaToolCmdTest):
|
||||
next_object = next_object.next_object
|
||||
|
||||
print("Linked Attributes: %d" % ctr6.linked_attributes_count)
|
||||
ctr6_links = self._get_ctr6_links(ctr6)
|
||||
for link in ctr6_links:
|
||||
for lidx in range(0, ctr6.linked_attributes_count):
|
||||
l = ctr6.linked_attributes[lidx]
|
||||
try:
|
||||
target = ndr_unpack(drsuapi.DsReplicaObjectIdentifier3,
|
||||
l.value.blob)
|
||||
except:
|
||||
target = ndr_unpack(drsuapi.DsReplicaObjectIdentifier3Binary,
|
||||
l.value.blob)
|
||||
|
||||
print("Link Tgt %s... <-- Src %s"
|
||||
%(link.targetDN[:25], link.identifier))
|
||||
%(target.dn[:25], l.identifier.guid))
|
||||
state = "Del"
|
||||
if l.flags & drsuapi.DRSUAPI_DS_LINKED_ATTRIBUTE_FLAG_ACTIVE:
|
||||
state = "Act"
|
||||
print(" v%u %s changed %u" %(l.meta_data.version, state,
|
||||
l.meta_data.originating_change_time))
|
||||
|
||||
print("HWM: %d" %(ctr6.new_highwatermark.highest_usn))
|
||||
print("Tmp HWM: %d" %(ctr6.new_highwatermark.tmp_highest_usn))
|
||||
|
Loading…
Reference in New Issue
Block a user