Bug in DC replication
Matthieu Patou
mat at samba.org
Tue Apr 5 02:30:13 MDT 2011
Hi Kamen,
> Hi Mattieu,
>
> Sorry for this took me so long. I am (and I still do) having problems with
> upping my Samba dev environment (what a shame!). But from what I see
> in source, this 'feature' is expected and it works this way from 2009.
> Please take a look at repl_meta_data.c:3180 - all local USNs are set
> to the new object USN number (which kind of make sense).
Well for me it didn't as it means that we have to transfer all the
attributes when just one is modified.
Also it's not the behavior of Windows. Bellow there is the
replPropertyMetaData for another w2k8r2 DC in the same domain, the DC
was off most of the time but I just started it this morning, so it got
the whole updates for the CN=test2,OU=test,DC=... at once, then I
changed the description and we can see that only the USN of the changed
is changed.
mat at ares:/usr/local/src/samba4$ ./bin/ldbsearch -H ldap://172.16.100.27
'(name=test2)' usnchanged replpropertymetadata member --show-binary -U
administrator%totoTATA123
# record 1
dn: CN=test2,OU=test,DC=w2k8r2,DC=home,DC=matws,DC=net
uSNChanged: 28691
replPropertyMetaData: NDR: struct replPropertyMetaDataBlob
version : 0x00000001 (1)
reserved : 0x00000000 (0)
ctr : union replPropertyMetaDataCtr(case 1)
ctr1: struct replPropertyMetaDataCtr1
count : 0x0000000c (12)
reserved : 0x00000000 (0)
array: ARRAY(12)
array: struct replPropertyMetaData1
attid :
DRSUAPI_ATTID_objectClass (0x0)
version : 0x00000001 (1)
originating_change_time : Mon Apr 4 12:04:09 2011 MSD
originating_invocation_id:
378a99bf-e2df-4832-ac0a-1fb625e530db
originating_usn : 0x00000000000251dc (152028)
local_usn : 0x0000000000006019 (24601)
array: struct replPropertyMetaData1
attid : DRSUAPI_ATTID_cn (0x3)
version : 0x00000001 (1)
originating_change_time : Tue Apr 5 11:13:27 2011 MSD
originating_invocation_id:
7c9654af-d130-429e-8e1f-6427d9be6335
originating_usn : 0x0000000000006019 (24601)
local_usn : 0x0000000000006019 (24601)
array: struct replPropertyMetaData1
attid :
DRSUAPI_ATTID_description (0xD)
version : 0x00000004 (4)
originating_change_time : Tue Apr 5 11:17:00 2011 MSD
originating_invocation_id:
378a99bf-e2df-4832-ac0a-1fb625e530db
originating_usn : 0x00000000000253b6 (152502)
local_usn : 0x0000000000007013 (28691)
array: struct replPropertyMetaData1
attid :
DRSUAPI_ATTID_instanceType (0x20001)
version : 0x00000001 (1)
originating_change_time : Mon Apr 4 12:04:09 2011 MSD
originating_invocation_id:
378a99bf-e2df-4832-ac0a-1fb625e530db
originating_usn : 0x00000000000251dc (152028)
local_usn : 0x0000000000006019 (24601)
array: struct replPropertyMetaData1
attid :
DRSUAPI_ATTID_whenCreated (0x20002)
version : 0x00000001 (1)
originating_change_time : Mon Apr 4 12:04:09 2011 MSD
originating_invocation_id:
378a99bf-e2df-4832-ac0a-1fb625e530db
originating_usn : 0x00000000000251dc (152028)
local_usn : 0x0000000000006019 (24601)
array: struct replPropertyMetaData1
attid :
DRSUAPI_ATTID_ntSecurityDescriptor (0x20119)
version : 0x00000001 (1)
originating_change_time : Mon Apr 4 12:04:09 2011 MSD
originating_invocation_id:
378a99bf-e2df-4832-ac0a-1fb625e530db
originating_usn : 0x00000000000251dc (152028)
local_usn : 0x0000000000006019 (24601)
array: struct replPropertyMetaData1
attid : DRSUAPI_ATTID_name (0x90001)
version : 0x00000001 (1)
originating_change_time : Mon Apr 4 12:04:09 2011 MSD
originating_invocation_id:
378a99bf-e2df-4832-ac0a-1fb625e530db
originating_usn : 0x00000000000251dc (152028)
local_usn : 0x0000000000006019 (24601)
array: struct replPropertyMetaData1
attid : DRSUAPI_ATTID_objectSid
(0x90092)
version : 0x00000001 (1)
originating_change_time : Mon Apr 4 12:04:09 2011 MSD
originating_invocation_id:
378a99bf-e2df-4832-ac0a-1fb625e530db
originating_usn : 0x00000000000251dc (152028)
local_usn : 0x0000000000006019 (24601)
array: struct replPropertyMetaData1
attid :
DRSUAPI_ATTID_sAMAccountName (0x900DD)
version : 0x00000001 (1)
originating_change_time : Mon Apr 4 12:04:09 2011 MSD
originating_invocation_id:
378a99bf-e2df-4832-ac0a-1fb625e530db
originating_usn : 0x00000000000251dc (152028)
local_usn : 0x0000000000006019 (24601)
array: struct replPropertyMetaData1
attid :
DRSUAPI_ATTID_sAMAccountType (0x9012E)
version : 0x00000001 (1)
originating_change_time : Mon Apr 4 12:04:09 2011 MSD
originating_invocation_id:
378a99bf-e2df-4832-ac0a-1fb625e530db
originating_usn : 0x00000000000251dc (152028)
local_usn : 0x0000000000006019 (24601)
array: struct replPropertyMetaData1
attid : DRSUAPI_ATTID_groupType
(0x902EE)
version : 0x00000001 (1)
originating_change_time : Mon Apr 4 12:04:09 2011 MSD
originating_invocation_id:
378a99bf-e2df-4832-ac0a-1fb625e530db
originating_usn : 0x00000000000251dc (152028)
local_usn : 0x0000000000006019 (24601)
array: struct replPropertyMetaData1
attid :
DRSUAPI_ATTID_objectCategory (0x9030E)
version : 0x00000001 (1)
originating_change_time : Mon Apr 4 12:04:09 2011 MSD
originating_invocation_id:
378a99bf-e2df-4832-ac0a-1fb625e530db
originating_usn : 0x00000000000251dc (152028)
local_usn : 0x0000000000006019 (24601)
> I am trying to reproduce this under w2k8-r2. But as I said already, I am
> having troubles here.
> I am quite sure though, that Tridge and Abartlet have done it the way
> windows works
Well it seems not.
--
Matthieu Patou
Samba Team http://samba.org
Private repo http://git.samba.org/?p=mat/samba.git;a=summary
More information about the samba-technical
mailing list