Hello Dochelp,
In my quite old provision it turned out that the instanceType for the root DN of the schema partition (CN=Schema,CN=Configuration,DC= ...) had a wrong value (old provision, bad knowledge of all AD stuff, so we made what we thought was good).
In a getncChanges reply from a Windows 2003R2 server the highest_usn and tmp_highest_usn are lesser than the USN of one change.
As a result samba keeps on asking this change, here is the dump of the getncchange reply.
Can you explain why the highwatermark's USNs are lower than the highest usn in the changes transmitted ?
Matthieu. -- Matthieu Patou Samba Team http://samba.org
pull returned NT_STATUS_OK
drsuapi_DsGetNCChanges: struct drsuapi_DsGetNCChanges
out: struct drsuapi_DsGetNCChanges
level_out : *
level_out : 0x00000006 (6)
ctr : *
ctr : union drsuapi_DsGetNCChangesCtr(case
6)
ctr6: struct drsuapi_DsGetNCChangesCtr6
source_dsa_guid :
a275a623-e2c3-428d-ada7-feaf045c8bb0
source_dsa_invocation_id :
251486a7-5091-4827-a5b5-edbdc7d173db
naming_context : *
naming_context: struct drsuapi_DsReplicaObjectIdentifier
__ndr_size : 0x00000096 (150)
__ndr_size_sid : 0x00000000 (0)
guid :
773b6351-5359-47a6-8877-a322349d4506
sid : S-0-0
__ndr_size_dn : 0x0000002e (46)
dn :
'CN=Schema,CN=Configuration,DC=domain,DC=tld'
old_highwatermark: struct drsuapi_DsReplicaHighWaterMark
tmp_highest_usn : 0x00000000000016f8 (5880)
reserved_usn : 0x0000000000000000 (0)
highest_usn : 0x00000000000016f8 (5880)
new_highwatermark: struct drsuapi_DsReplicaHighWaterMark
tmp_highest_usn : 0x00000000000016f8 (5880)
reserved_usn : 0x0000000000000000 (0)
highest_usn : 0x00000000000016f8 (5880)
uptodateness_vector : *
uptodateness_vector: struct
drsuapi_DsReplicaCursor2CtrEx
version : 0x00000002 (2)
reserved1 : 0x00000000 (0)
count : 0x00000002 (2)
reserved2 : 0x00000000 (0)
cursors: ARRAY(2)
cursors: struct drsuapi_DsReplicaCursor2
source_dsa_invocation_id :
251486a7-5091-4827-a5b5-edbdc7d173db
highest_usn :
0x0000000000003046 (12358)
last_sync_success : jeu. janv. 1
01:00:00 1970 CET
cursors: struct drsuapi_DsReplicaCursor2
source_dsa_invocation_id :
4dc65950-fc6d-4dd4-98da-7bd3eb15a702
highest_usn :
0x000000000005b778 (374648)
last_sync_success : mar. nov. 15
12:13:21 2011 CET
mapping_ctr: struct drsuapi_DsReplicaOIDMapping_Ctr
num_mappings : 0x0000002a (42)
mappings : *
mappings: ARRAY(42)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000000 (0)
oid: struct drsuapi_DsReplicaOID
length : 0x00000002
(2)
oid : length=2
binary_oid : 0x5504
(2.5.4)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000001 (1)
oid: struct drsuapi_DsReplicaOID
length : 0x00000002
(2)
oid : length=2
binary_oid : 0x5506
(2.5.6)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000002 (2)
oid: struct drsuapi_DsReplicaOID
length : 0x00000008
(8)
oid : length=8
binary_oid :
0x2A864886F7140102 (1.2.840.113556.1.2)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000003 (3)
oid: struct drsuapi_DsReplicaOID
length : 0x00000008
(8)
oid : length=8
binary_oid :
0x2A864886F7140103 (1.2.840.113556.1.3)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000004 (4)
oid: struct drsuapi_DsReplicaOID
length : 0x00000008
(8)
oid : length=8
binary_oid :
0x6086480165020201 (2.16.840.1.101.2.2.1)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000005 (5)
oid: struct drsuapi_DsReplicaOID
length : 0x00000008
(8)
oid : length=8
binary_oid :
0x6086480165020203 (2.16.840.1.101.2.2.3)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000006 (6)
oid: struct drsuapi_DsReplicaOID
length : 0x00000008
(8)
oid : length=8
binary_oid :
0x6086480165020105 (2.16.840.1.101.2.1.5)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000007 (7)
oid: struct drsuapi_DsReplicaOID
length : 0x00000008
(8)
oid : length=8
binary_oid :
0x6086480165020104 (2.16.840.1.101.2.1.4)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000008 (8)
oid: struct drsuapi_DsReplicaOID
length : 0x00000002
(2)
oid : length=2
binary_oid : 0x5505
(2.5.5)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000009 (9)
oid: struct drsuapi_DsReplicaOID
length : 0x00000008
(8)
oid : length=8
binary_oid :
0x2A864886F7140104 (1.2.840.113556.1.4)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x0000000a (10)
oid: struct drsuapi_DsReplicaOID
length : 0x00000008
(8)
oid : length=8
binary_oid :
0x2A864886F7140105 (1.2.840.113556.1.5)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000013 (19)
oid: struct drsuapi_DsReplicaOID
length : 0x00000008
(8)
oid : length=8
binary_oid :
0x0992268993F22C64 (0.9.2342.19200300.100)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000014 (20)
oid: struct drsuapi_DsReplicaOID
length : 0x00000008
(8)
oid : length=8
binary_oid :
0x6086480186F84203 (2.16.840.1.113730.3)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000015 (21)
oid: struct drsuapi_DsReplicaOID
length : 0x00000009
(9)
oid : length=9
binary_oid :
0x0992268993F22C6401 (0.9.2342.19200300.100.1)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000016 (22)
oid: struct drsuapi_DsReplicaOID
length : 0x00000009
(9)
oid : length=9
binary_oid :
0x6086480186F8420301 (2.16.840.1.113730.3.1)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000017 (23)
oid: struct drsuapi_DsReplicaOID
length : 0x0000000a
(10)
oid : length=10
binary_oid :
0x2A864886F7140105B658 (1.2.840.113556.1.5.7000)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000018 (24)
oid: struct drsuapi_DsReplicaOID
length : 0x00000002
(2)
oid : length=2
binary_oid : 0x5515
(2.5.21)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000019 (25)
oid: struct drsuapi_DsReplicaOID
length : 0x00000002
(2)
oid : length=2
binary_oid : 0x5512
(2.5.18)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x0000001a (26)
oid: struct drsuapi_DsReplicaOID
length : 0x00000002
(2)
oid : length=2
binary_oid : 0x5514
(2.5.20)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x0000000b (11)
oid: struct drsuapi_DsReplicaOID
length : 0x0000000a
(10)
oid : length=10
binary_oid :
0x2A864886F71401048204 (1.2.840.113556.1.4.260)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x0000000c (12)
oid: struct drsuapi_DsReplicaOID
length : 0x00000009
(9)
oid : length=9
binary_oid :
0x2A864886F714010538 (1.2.840.113556.1.5.56)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x0000000d (13)
oid: struct drsuapi_DsReplicaOID
length : 0x0000000a
(10)
oid : length=10
binary_oid :
0x2A864886F71401048206 (1.2.840.113556.1.4.262)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x0000000e (14)
oid: struct drsuapi_DsReplicaOID
length : 0x00000009
(9)
oid : length=9
binary_oid :
0x2A864886F714010539 (1.2.840.113556.1.5.57)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x0000000f (15)
oid: struct drsuapi_DsReplicaOID
length : 0x0000000a
(10)
oid : length=10
binary_oid :
0x2A864886F71401048207 (1.2.840.113556.1.4.263)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000010 (16)
oid: struct drsuapi_DsReplicaOID
length : 0x00000009
(9)
oid : length=9
binary_oid :
0x2A864886F71401053A (1.2.840.113556.1.5.58)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000011 (17)
oid: struct drsuapi_DsReplicaOID
length : 0x00000009
(9)
oid : length=9
binary_oid :
0x2A864886F714010549 (1.2.840.113556.1.5.73)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000012 (18)
oid: struct drsuapi_DsReplicaOID
length : 0x0000000a
(10)
oid : length=10
binary_oid :
0x2A864886F71401048231 (1.2.840.113556.1.4.305)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x0000001b (27)
oid: struct drsuapi_DsReplicaOID
length : 0x00000009
(9)
oid : length=9
binary_oid :
0x2B060104018B3A6577 (1.3.6.1.4.1.1466.101.119)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x0000001c (28)
oid: struct drsuapi_DsReplicaOID
length : 0x00000009
(9)
oid : length=9
binary_oid :
0x6086480186F8420302 (2.16.840.1.113730.3.2)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x0000001d (29)
oid: struct drsuapi_DsReplicaOID
length : 0x00000008
(8)
oid : length=8
binary_oid :
0x2B06010401817A01 (1.3.6.1.4.1.250.1)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x0000001e (30)
oid: struct drsuapi_DsReplicaOID
length : 0x00000008
(8)
oid : length=8
binary_oid :
0x2A864886F70D0109 (1.2.840.113549.1.9)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x0000001f (31)
oid: struct drsuapi_DsReplicaOID
length : 0x00000009
(9)
oid : length=9
binary_oid :
0x0992268993F22C6404 (0.9.2342.19200300.100.4)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000020 (32)
oid: struct drsuapi_DsReplicaOID
length : 0x00000009
(9)
oid : length=9
binary_oid :
0x2A864886F714010617 (1.2.840.113556.1.6.23)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000021 (33)
oid: struct drsuapi_DsReplicaOID
length : 0x0000000a
(10)
oid : length=10
binary_oid :
0x2A864886F71401061201 (1.2.840.113556.1.6.18.1)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000022 (34)
oid: struct drsuapi_DsReplicaOID
length : 0x0000000a
(10)
oid : length=10
binary_oid :
0x2A864886F71401061202 (1.2.840.113556.1.6.18.2)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000023 (35)
oid: struct drsuapi_DsReplicaOID
length : 0x0000000a
(10)
oid : length=10
binary_oid :
0x2A864886F71401060D03 (1.2.840.113556.1.6.13.3)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000024 (36)
oid: struct drsuapi_DsReplicaOID
length : 0x0000000a
(10)
oid : length=10
binary_oid :
0x2A864886F71401060D04 (1.2.840.113556.1.6.13.4)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000025 (37)
oid: struct drsuapi_DsReplicaOID
length : 0x00000006
(6)
oid : length=6
binary_oid :
0x2B0601010101 (1.3.6.1.1.1.1)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000026 (38)
oid: struct drsuapi_DsReplicaOID
length : 0x00000006
(6)
oid : length=6
binary_oid :
0x2B0601010102 (1.3.6.1.1.1.2)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000190 (400)
oid: struct drsuapi_DsReplicaOID
length : 0x00000009
(9)
oid : length=9
binary_oid :
0x2B06010401B77D0401 (1.3.6.1.4.1.7165.4.1)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00005236
(21046)
oid: struct drsuapi_DsReplicaOID
length : 0x00000009
(9)
oid : length=9
binary_oid :
0x2B06010401B77D0402 (1.3.6.1.4.1.7165.4.2)
mappings: struct drsuapi_DsReplicaOIDMapping
id_prefix : 0x00000000 (0)
oid: struct drsuapi_DsReplicaOID
length : 0x00000015
(21)
oid : length=21
binary_oid :
0xFF0000000000000000000000000000000000000000
(6.15.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0)
extended_ret : DRSUAPI_EXOP_ERR_NONE (0x0)
object_count : 0x00000001 (1)
__ndr_size : 0x000006c8 (1736)
first_object : *
first_object: struct drsuapi_DsReplicaObjectListItemEx
next_object : NULL
object: struct drsuapi_DsReplicaObject
identifier : *
identifier: struct
drsuapi_DsReplicaObjectIdentifier
__ndr_size : 0x00000096
(150)
__ndr_size_sid : 0x00000000
(0)
guid :
773b6351-5359-47a6-8877-a322349d4506
sid : S-0-0
__ndr_size_dn : 0x0000002e
(46)
dn :
'CN=Schema,CN=Configuration,DC=domain,DC=tld'
flags : 0x00000001 (1)
1: DRSUAPI_DS_REPLICA_OBJECT_FROM_MASTER
0: DRSUAPI_DS_REPLICA_OBJECT_DYNAMIC
0:
DRSUAPI_DS_REPLICA_OBJECT_REMOTE_MODIFY
attribute_ctr: struct
drsuapi_DsReplicaAttributeCtr
num_attributes : 0x00000001 (1)
attributes : *
attributes: ARRAY(1)
attributes: struct
drsuapi_DsReplicaAttribute
attid :
DRSUAPI_ATTID_instanceType (0x20001)
value_ctr: struct
drsuapi_DsAttributeValueCtr
num_values :
0x00000001 (1)
values : *
values: ARRAY(1)
values: struct
drsuapi_DsAttributeValue
__ndr_size
: 0x00000004 (4)
blob
: *
blob
: DATA_BLOB length=4
[0000] 05 00 00 00 ....
is_nc_prefix : 0x00000001 (1)
parent_object_guid : NULL
meta_data_ctr : *
meta_data_ctr: struct
drsuapi_DsReplicaMetaDataCtr
count : 0x00000001 (1)
meta_data: ARRAY(1)
meta_data: struct
drsuapi_DsReplicaMetaData
version :
0x00000002 (2)
originating_change_time : mar.
nov. 15 12:00:41 2011 CET
originating_invocation_id:
251486a7-5091-4827-a5b5-edbdc7d173db
originating_usn :
0x00000000000016f9 (5881)
more_data : 0x00000000 (0)
nc_object_count : 0x00000000 (0)
nc_linked_attributes_count: 0x00000000 (0)
linked_attributes_count : 0x00000000 (0)
linked_attributes : NULL
drs_error : WERR_OK
result : WERR_OK
dump OK
_______________________________________________ cifs-protocol mailing list [email protected] https://lists.samba.org/mailman/listinfo/cifs-protocol
