dsdb-repl: When looking for a partition from a NC check that all non null parameters are coherent
It means that we check that on the found partition (p)
* nc->dn != NULL && nc->dn == p->dn
* nc->guid != NULL && nc->guid == p->guid
* nc->sid != NULL && nc->sid == p->sid
drsuapi: Check that the GUID specified in the request is the really the GUID of the NC
Up to now it was possible to specify in the request the GUID of
CN=Computer,DC=domain,DC=tld but DC=domain,DC=tld as the NC's dn and
still avoid the BAD_NC.
This is because the dsdb_find_nc_root for the specified extended dn will
return DC=domain,DC=tld which is the same as the string part of the DN
specified in the request.
Problem was spoted by Andrew Bartlett <abartlett@samba.org>, thanks !
drsuapi: avoid calling twice drs_ObjectIdentifier_to_dn/drs_ObjectIdentifier_to_string
Instead we call once and we do the linearization of the dn for the debug
message.
s4-drs: When comparing DN, check the DN itself and its extra bits if present
For DN+String or DN+Binary the extra makes the difference so it's not sufficient
to compare just the DN, the extra has to match otherwise it's a different "DN".
Which means that if you had B:
00000001:DC=Foo and you have a replace with just
B:
00000002:DC=Foo you have to mark the first DN as deleted and the new one as created
Before we would have just increased the version on the DN (and updated the USNs).
I discovered this while replicating the configuration NC from a Windows DC that has just been
promoted I noticed that for the attribute msDS-HasInstantiatedNCs we had 2 entries
for each domain related NC (forest and domain):
* One to delete the previous DN+Binary
* One to create the new one
nc_linked_attributes_count: 0x00000000 (0)
linked_attributes_count : 0x0000000a (10)
linked_attributes : *
linked_attributes: ARRAY(10)
linked_attributes: struct drsuapi_DsReplicaLinkedAttribute
identifier : *
identifier: struct drsuapi_DsReplicaObjectIdentifier
__ndr_size : 0x0000003a (58)
__ndr_size_sid : 0x00000000 (0)
guid :
60b2cf44-9b15-408d-bdd0-
65b9514e7114
sid : S-0-0
__ndr_size_dn : 0x00000000 (0)
dn : ''
attid : UNKNOWN_ENUM_VALUE (0x906AD)
value: struct drsuapi_DsAttributeValue
__ndr_size : 0x00000088 (136)
blob : *
blob : DATA_BLOB length=136
[0000] 7E 00 00 00 00 00 00 00 83 48 D5 7E FF 93 C9 4D ~....... .H.~...M
[0010] 8E 9C 64 9D 4D 46 7D 21 00 00 00 00 00 00 00 00 ..d.MF}! ........
[0020] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
[0030] 00 00 00 00 22 00 00 00 44 00 43 00 3D 00 44 00 ...."... D.C.=.D.
[0040] 6F 00 6D 00 61 00 69 00 6E 00 44 00 6E 00 73 00 o.m.a.i. n.D.n.s.
[0050] 5A 00 6F 00 6E 00 65 00 73 00 2C 00 44 00 43 00 Z.o.n.e. s.,.D.C.
[0060] 3D 00 73 00 61 00 6D 00 62 00 61 00 2C 00 44 00 =.s.a.m. b.a.,.D.
[0070] 43 00 3D 00 63 00 6F 00 72 00 70 00 00 00 00 00 C.=.c.o. r.p.....
[0080] 08 00 00 00 00 00 00 1D ........
flags : 0x00000000 (0)
0: DRSUAPI_DS_LINKED_ATTRIBUTE_FLAG_ACTIVE
originating_add_time : Sat Sep 29 11:29:12 PM 2012 PDT
meta_data: struct drsuapi_DsReplicaMetaData
version : 0x00000002 (2)
originating_change_time : Sat Sep 29 11:29:12 PM 2012 PDT
originating_invocation_id:
6dae53b2-4451-43fa-aead-
92beb46962f3
originating_usn : 0x00000000000020be (8382)
linked_attributes: struct drsuapi_DsReplicaLinkedAttribute
identifier : *
identifier: struct drsuapi_DsReplicaObjectIdentifier
__ndr_size : 0x0000003a (58)
__ndr_size_sid : 0x00000000 (0)
guid :
60b2cf44-9b15-408d-bdd0-
65b9514e7114
sid : S-0-0
__ndr_size_dn : 0x00000000 (0)
dn : ''
attid : UNKNOWN_ENUM_VALUE (0x906AD)
value: struct drsuapi_DsAttributeValue
__ndr_size : 0x00000088 (136)
blob : *
blob : DATA_BLOB length=136
[0000] 7E 00 00 00 00 00 00 00 C1 D0 CF 56 4C 59 FF 41 ~....... ...VLY.A
[0010] BF 9A 40 27 EC CB D7 B4 00 00 00 00 00 00 00 00 ..@'.... ........
[0020] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
[0030] 00 00 00 00 22 00 00 00 44 00 43 00 3D 00 46 00 ...."... D.C.=.F.
[0040] 6F 00 72 00 65 00 73 00 74 00 44 00 6E 00 73 00 o.r.e.s. t.D.n.s.
[0050] 5A 00 6F 00 6E 00 65 00 73 00 2C 00 44 00 43 00 Z.o.n.e. s.,.D.C.
[0060] 3D 00 73 00 61 00 6D 00 62 00 61 00 2C 00 44 00 =.s.a.m. b.a.,.D.
[0070] 43 00 3D 00 63 00 6F 00 72 00 70 00 00 00 00 00 C.=.c.o. r.p.....
[0080] 08 00 00 00 00 00 00 1D ........
flags : 0x00000000 (0)
0: DRSUAPI_DS_LINKED_ATTRIBUTE_FLAG_ACTIVE
originating_add_time : Sat Sep 29 11:29:12 PM 2012 PDT
meta_data: struct drsuapi_DsReplicaMetaData
version : 0x00000002 (2)
originating_change_time : Sat Sep 29 11:29:12 PM 2012 PDT
originating_invocation_id:
6dae53b2-4451-43fa-aead-
92beb46962f3
originating_usn : 0x00000000000020e8 (8424)
linked_attributes: struct drsuapi_DsReplicaLinkedAttribute
identifier : *
identifier: struct drsuapi_DsReplicaObjectIdentifier
__ndr_size : 0x0000003a (58)
__ndr_size_sid : 0x00000000 (0)
guid :
60b2cf44-9b15-408d-bdd0-
65b9514e7114
sid : S-0-0
__ndr_size_dn : 0x00000000 (0)
dn : ''
attid : UNKNOWN_ENUM_VALUE (0x906AD)
value: struct drsuapi_DsAttributeValue
__ndr_size : 0x00000088 (136)
blob : *
blob : DATA_BLOB length=136
[0000] 7E 00 00 00 00 00 00 00 83 48 D5 7E FF 93 C9 4D ~....... .H.~...M
[0010] 8E 9C 64 9D 4D 46 7D 21 00 00 00 00 00 00 00 00 ..d.MF}! ........
[0020] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
[0030] 00 00 00 00 22 00 00 00 44 00 43 00 3D 00 44 00 ...."... D.C.=.D.
[0040] 6F 00 6D 00 61 00 69 00 6E 00 44 00 6E 00 73 00 o.m.a.i. n.D.n.s.
[0050] 5A 00 6F 00 6E 00 65 00 73 00 2C 00 44 00 43 00 Z.o.n.e. s.,.D.C.
[0060] 3D 00 73 00 61 00 6D 00 62 00 61 00 2C 00 44 00 =.s.a.m. b.a.,.D.
[0070] 43 00 3D 00 63 00 6F 00 72 00 70 00 00 00 00 00 C.=.c.o. r.p.....
[0080] 08 00 00 00 00 00 00 0D ........
flags : 0x00000001 (1)
1: DRSUAPI_DS_LINKED_ATTRIBUTE_FLAG_ACTIVE
originating_add_time : Sat Sep 29 11:29:12 PM 2012 PDT
meta_data: struct drsuapi_DsReplicaMetaData
version : 0x00000001 (1)
originating_change_time : Sat Sep 29 11:29:12 PM 2012 PDT
originating_invocation_id:
6dae53b2-4451-43fa-aead-
92beb46962f3
originating_usn : 0x00000000000020c2 (8386)
linked_attributes: struct drsuapi_DsReplicaLinkedAttribute
identifier : *
identifier: struct drsuapi_DsReplicaObjectIdentifier
__ndr_size : 0x0000003a (58)
__ndr_size_sid : 0x00000000 (0)
guid :
60b2cf44-9b15-408d-bdd0-
65b9514e7114
sid : S-0-0
__ndr_size_dn : 0x00000000 (0)
dn : ''
attid : UNKNOWN_ENUM_VALUE (0x906AD)
value: struct drsuapi_DsAttributeValue
__ndr_size : 0x00000064 (100)
blob : *
blob : DATA_BLOB length=100
[0000] 5A 00 00 00 18 00 00 00 84 74 F0 70 C8 DC 3F 46 Z....... .t.p..?F
[0010] 93 97 53 54 B4 48 69 39 01 04 00 00 00 00 00 05 ..ST.Hi9 ........
[0020] 15 00 00 00 39 E2 C6 13 FB 0F 59 86 29 81 15 55 ....9... ..Y.)..U
[0030] 00 00 00 00 10 00 00 00 44 00 43 00 3D 00 73 00 ........ D.C.=.s.
[0040] 61 00 6D 00 62 00 61 00 2C 00 44 00 43 00 3D 00 a.m.b.a. ,.D.C.=.
[0050] 63 00 6F 00 72 00 70 00 00 00 00 00 08 00 00 00 c.o.r.p. ........
[0060] 00 00 00 05 ....
flags : 0x00000001 (1)
1: DRSUAPI_DS_LINKED_ATTRIBUTE_FLAG_ACTIVE
originating_add_time : Sat Sep 29 11:29:12 PM 2012 PDT
meta_data: struct drsuapi_DsReplicaMetaData
version : 0x00000001 (1)
originating_change_time : Sat Sep 29 11:29:12 PM 2012 PDT
originating_invocation_id:
6dae53b2-4451-43fa-aead-
92beb46962f3
originating_usn : 0x0000000000002082 (8322)
linked_attributes: struct drsuapi_DsReplicaLinkedAttribute
identifier : *
identifier: struct drsuapi_DsReplicaObjectIdentifier
__ndr_size : 0x0000003a (58)
__ndr_size_sid : 0x00000000 (0)
guid :
60b2cf44-9b15-408d-bdd0-
65b9514e7114
sid : S-0-0
__ndr_size_dn : 0x00000000 (0)
dn : ''
attid : UNKNOWN_ENUM_VALUE (0x906AD)
value: struct drsuapi_DsAttributeValue
__ndr_size : 0x00000088 (136)
blob : *
blob : DATA_BLOB length=136
[0000] 7E 00 00 00 00 00 00 00 C1 D0 CF 56 4C 59 FF 41 ~....... ...VLY.A
[0010] BF 9A 40 27 EC CB D7 B4 00 00 00 00 00 00 00 00 ..@'.... ........
[0020] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
[0030] 00 00 00 00 22 00 00 00 44 00 43 00 3D 00 46 00 ...."... D.C.=.F.
[0040] 6F 00 72 00 65 00 73 00 74 00 44 00 6E 00 73 00 o.r.e.s. t.D.n.s.
[0050] 5A 00 6F 00 6E 00 65 00 73 00 2C 00 44 00 43 00 Z.o.n.e. s.,.D.C.
[0060] 3D 00 73 00 61 00 6D 00 62 00 61 00 2C 00 44 00 =.s.a.m. b.a.,.D.
[0070] 43 00 3D 00 63 00 6F 00 72 00 70 00 00 00 00 00 C.=.c.o. r.p.....
[0080] 08 00 00 00 00 00 00 0D ........
flags : 0x00000001 (1)
1: DRSUAPI_DS_LINKED_ATTRIBUTE_FLAG_ACTIVE
originating_add_time : Sat Sep 29 11:29:12 PM 2012 PDT
meta_data: struct drsuapi_DsReplicaMetaData
version : 0x00000001 (1)
originating_change_time : Sat Sep 29 11:29:12 PM 2012 PDT
originating_invocation_id:
6dae53b2-4451-43fa-aead-
92beb46962f3
originating_usn : 0x00000000000020ec (8428)
linked_attributes: struct drsuapi_DsReplicaLinkedAttribute
identifier : *
identifier: struct drsuapi_DsReplicaObjectIdentifier
__ndr_size : 0x0000003a (58)
__ndr_size_sid : 0x00000000 (0)
guid :
60b2cf44-9b15-408d-bdd0-
65b9514e7114
sid : S-0-0
__ndr_size_dn : 0x00000000 (0)
dn : ''
attid : DRSUAPI_ATTID_msDS_hasMasterNCs (0x9072C)
value: struct drsuapi_DsAttributeValue
__ndr_size : 0x0000007e (126)
blob : *
blob : DATA_BLOB length=126
[0000] 7E 00 00 00 00 00 00 00 83 48 D5 7E FF 93 C9 4D ~....... .H.~...M
[0010] 8E 9C 64 9D 4D 46 7D 21 00 00 00 00 00 00 00 00 ..d.MF}! ........
[0020] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
[0030] 00 00 00 00 22 00 00 00 44 00 43 00 3D 00 44 00 ...."... D.C.=.D.
[0040] 6F 00 6D 00 61 00 69 00 6E 00 44 00 6E 00 73 00 o.m.a.i. n.D.n.s.
[0050] 5A 00 6F 00 6E 00 65 00 73 00 2C 00 44 00 43 00 Z.o.n.e. s.,.D.C.
[0060] 3D 00 73 00 61 00 6D 00 62 00 61 00 2C 00 44 00 =.s.a.m. b.a.,.D.
[0070] 43 00 3D 00 63 00 6F 00 72 00 70 00 00 00 C.=.c.o. r.p...
flags : 0x00000001 (1)
1: DRSUAPI_DS_LINKED_ATTRIBUTE_FLAG_ACTIVE
originating_add_time : Sat Sep 29 11:29:12 PM 2012 PDT
meta_data: struct drsuapi_DsReplicaMetaData
version : 0x00000003 (3)
originating_change_time : Sat Sep 29 11:29:12 PM 2012 PDT
originating_invocation_id:
6dae53b2-4451-43fa-aead-
92beb46962f3
originating_usn : 0x00000000000020c1 (8385)
linked_attributes: struct drsuapi_DsReplicaLinkedAttribute
identifier : *
identifier: struct drsuapi_DsReplicaObjectIdentifier
__ndr_size : 0x0000003a (58)
__ndr_size_sid : 0x00000000 (0)
guid :
60b2cf44-9b15-408d-bdd0-
65b9514e7114
sid : S-0-0
__ndr_size_dn : 0x00000000 (0)
dn : ''
attid : DRSUAPI_ATTID_msDS_hasMasterNCs (0x9072C)
value: struct drsuapi_DsAttributeValue
__ndr_size : 0x0000005a (90)
blob : *
blob : DATA_BLOB length=90
[0000] 5A 00 00 00 18 00 00 00 84 74 F0 70 C8 DC 3F 46 Z....... .t.p..?F
[0010] 93 97 53 54 B4 48 69 39 01 04 00 00 00 00 00 05 ..ST.Hi9 ........
[0020] 15 00 00 00 39 E2 C6 13 FB 0F 59 86 29 81 15 55 ....9... ..Y.)..U
[0030] 00 00 00 00 10 00 00 00 44 00 43 00 3D 00 73 00 ........ D.C.=.s.
[0040] 61 00 6D 00 62 00 61 00 2C 00 44 00 43 00 3D 00 a.m.b.a. ,.D.C.=.
[0050] 63 00 6F 00 72 00 70 00 00 00 c.o.r.p. ..
flags : 0x00000001 (1)
1: DRSUAPI_DS_LINKED_ATTRIBUTE_FLAG_ACTIVE
originating_add_time : Sat Sep 29 11:28:48 PM 2012 PDT
meta_data: struct drsuapi_DsReplicaMetaData
version : 0x00000002 (2)
originating_change_time : Sat Sep 29 11:29:12 PM 2012 PDT
originating_invocation_id:
6dae53b2-4451-43fa-aead-
92beb46962f3
originating_usn : 0x0000000000002081 (8321)
linked_attributes: struct drsuapi_DsReplicaLinkedAttribute
identifier : *
identifier: struct drsuapi_DsReplicaObjectIdentifier
__ndr_size : 0x0000003a (58)
__ndr_size_sid : 0x00000000 (0)
guid :
60b2cf44-9b15-408d-bdd0-
65b9514e7114
sid : S-0-0
__ndr_size_dn : 0x00000000 (0)
dn : ''
attid : DRSUAPI_ATTID_msDS_hasMasterNCs (0x9072C)
value: struct drsuapi_DsAttributeValue
__ndr_size : 0x0000007e (126)
blob : *
blob : DATA_BLOB length=126
[0000] 7E 00 00 00 00 00 00 00 C1 D0 CF 56 4C 59 FF 41 ~....... ...VLY.A
[0010] BF 9A 40 27 EC CB D7 B4 00 00 00 00 00 00 00 00 ..@'.... ........
[0020] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
[0030] 00 00 00 00 22 00 00 00 44 00 43 00 3D 00 46 00 ...."... D.C.=.F.
[0040] 6F 00 72 00 65 00 73 00 74 00 44 00 6E 00 73 00 o.r.e.s. t.D.n.s.
[0050] 5A 00 6F 00 6E 00 65 00 73 00 2C 00 44 00 43 00 Z.o.n.e. s.,.D.C.
[0060] 3D 00 73 00 61 00 6D 00 62 00 61 00 2C 00 44 00 =.s.a.m. b.a.,.D.
[0070] 43 00 3D 00 63 00 6F 00 72 00 70 00 00 00 C.=.c.o. r.p...
flags : 0x00000001 (1)
1: DRSUAPI_DS_LINKED_ATTRIBUTE_FLAG_ACTIVE
originating_add_time : Sat Sep 29 11:29:12 PM 2012 PDT
meta_data: struct drsuapi_DsReplicaMetaData
version : 0x00000003 (3)
originating_change_time : Sat Sep 29 11:29:12 PM 2012 PDT
originating_invocation_id:
6dae53b2-4451-43fa-aead-
92beb46962f3
originating_usn : 0x00000000000020eb (8427)
linked_attributes: struct drsuapi_DsReplicaLinkedAttribute
identifier : *
identifier: struct drsuapi_DsReplicaObjectIdentifier
__ndr_size : 0x0000003a (58)
__ndr_size_sid : 0x00000000 (0)
guid :
e60a70b2-c6aa-42e5-b528-
7c36be5e59a2
sid : S-0-0
__ndr_size_dn : 0x00000000 (0)
dn : ''
attid : UNKNOWN_ENUM_VALUE (0x9067D)
value: struct drsuapi_DsAttributeValue
__ndr_size : 0x00000116 (278)
blob : *
blob : DATA_BLOB length=278
[0000] 16 01 00 00 00 00 00 00 44 CF B2 60 15 9B 8D 40 ........ D..`...@
[0010] BD D0 65 B9 51 4E 71 14 00 00 00 00 00 00 00 00 ..e.QNq. ........
[0020] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
[0030] 00 00 00 00 6E 00 00 00 43 00 4E 00 3D 00 4E 00 ....n... C.N.=.N.
[0040] 54 00 44 00 53 00 20 00 53 00 65 00 74 00 74 00 T.D.S. . S.e.t.t.
[0050] 69 00 6E 00 67 00 73 00 2C 00 43 00 4E 00 3D 00 i.n.g.s. ,.C.N.=.
[0060] 53 00 31 00 2D 00 57 00 32 00 4B 00 38 00 52 00 S.1.-.W. 2.K.8.R.
[0070] 32 00 2C 00 43 00 4E 00 3D 00 53 00 65 00 72 00 2.,.C.N. =.S.e.r.
[0080] 76 00 65 00 72 00 73 00 2C 00 43 00 4E 00 3D 00 v.e.r.s. ,.C.N.=.
[0090] 44 00 65 00 66 00 61 00 75 00 6C 00 74 00 2D 00 D.e.f.a. u.l.t.-.
[00A0] 46 00 69 00 72 00 73 00 74 00 2D 00 53 00 69 00 F.i.r.s. t.-.S.i.
[00B0] 74 00 65 00 2D 00 4E 00 61 00 6D 00 65 00 2C 00 t.e.-.N. a.m.e.,.
[00C0] 43 00 4E 00 3D 00 53 00 69 00 74 00 65 00 73 00 C.N.=.S. i.t.e.s.
[00D0] 2C 00 43 00 4E 00 3D 00 43 00 6F 00 6E 00 66 00 ,.C.N.=. C.o.n.f.
[00E0] 69 00 67 00 75 00 72 00 61 00 74 00 69 00 6F 00 i.g.u.r. a.t.i.o.
[00F0] 6E 00 2C 00 44 00 43 00 3D 00 73 00 61 00 6D 00 n.,.D.C. =.s.a.m.
[0100] 62 00 61 00 2C 00 44 00 43 00 3D 00 63 00 6F 00 b.a.,.D. C.=.c.o.
[0110] 72 00 70 00 00 00 r.p...
flags : 0x00000001 (1)
1: DRSUAPI_DS_LINKED_ATTRIBUTE_FLAG_ACTIVE
originating_add_time : Sat Sep 29 11:28:57 PM 2012 PDT
meta_data: struct drsuapi_DsReplicaMetaData
version : 0x00000001 (1)
originating_change_time : Sat Sep 29 11:28:57 PM 2012 PDT
originating_invocation_id:
6dae53b2-4451-43fa-aead-
92beb46962f3
originating_usn : 0x0000000000001e12 (7698)
linked_attributes: struct drsuapi_DsReplicaLinkedAttribute
identifier : *
identifier: struct drsuapi_DsReplicaObjectIdentifier
__ndr_size : 0x0000003a (58)
__ndr_size_sid : 0x00000000 (0)
guid :
80a740d8-f63e-4b37-a5c4-
19dd4a9123ef
sid : S-0-0
__ndr_size_dn : 0x00000000 (0)
dn : ''
attid : UNKNOWN_ENUM_VALUE (0x9067D)
value: struct drsuapi_DsAttributeValue
__ndr_size : 0x00000116 (278)
blob : *
blob : DATA_BLOB length=278
[0000] 16 01 00 00 00 00 00 00 44 CF B2 60 15 9B 8D 40 ........ D..`...@
[0010] BD D0 65 B9 51 4E 71 14 00 00 00 00 00 00 00 00 ..e.QNq. ........
[0020] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
[0030] 00 00 00 00 6E 00 00 00 43 00 4E 00 3D 00 4E 00 ....n... C.N.=.N.
[0040] 54 00 44 00 53 00 20 00 53 00 65 00 74 00 74 00 T.D.S. . S.e.t.t.
[0050] 69 00 6E 00 67 00 73 00 2C 00 43 00 4E 00 3D 00 i.n.g.s. ,.C.N.=.
[0060] 53 00 31 00 2D 00 57 00 32 00 4B 00 38 00 52 00 S.1.-.W. 2.K.8.R.
[0070] 32 00 2C 00 43 00 4E 00 3D 00 53 00 65 00 72 00 2.,.C.N. =.S.e.r.
[0080] 76 00 65 00 72 00 73 00 2C 00 43 00 4E 00 3D 00 v.e.r.s. ,.C.N.=.
[0090] 44 00 65 00 66 00 61 00 75 00 6C 00 74 00 2D 00 D.e.f.a. u.l.t.-.
[00A0] 46 00 69 00 72 00 73 00 74 00 2D 00 53 00 69 00 F.i.r.s. t.-.S.i.
[00B0] 74 00 65 00 2D 00 4E 00 61 00 6D 00 65 00 2C 00 t.e.-.N. a.m.e.,.
[00C0] 43 00 4E 00 3D 00 53 00 69 00 74 00 65 00 73 00 C.N.=.S. i.t.e.s.
[00D0] 2C 00 43 00 4E 00 3D 00 43 00 6F 00 6E 00 66 00 ,.C.N.=. C.o.n.f.
[00E0] 69 00 67 00 75 00 72 00 61 00 74 00 69 00 6F 00 i.g.u.r. a.t.i.o.
[00F0] 6E 00 2C 00 44 00 43 00 3D 00 73 00 61 00 6D 00 n.,.D.C. =.s.a.m.
[0100] 62 00 61 00 2C 00 44 00 43 00 3D 00 63 00 6F 00 b.a.,.D. C.=.c.o.
[0110] 72 00 70 00 00 00 r.p...
flags : 0x00000001 (1)
1: DRSUAPI_DS_LINKED_ATTRIBUTE_FLAG_ACTIVE
originating_add_time : Sat Sep 29 11:28:57 PM 2012 PDT
meta_data: struct drsuapi_DsReplicaMetaData
version : 0x00000001 (1)
originating_change_time : Sat Sep 29 11:28:57 PM 2012 PDT
originating_invocation_id:
6dae53b2-4451-43fa-aead-
92beb46962f3
originating_usn : 0x0000000000001e10 (7696)
drs_error : WERR_OK
result : WERR_OK
dump OK
idl: declare frstrans_VersionVector public so that we can dump it to blob and vice versa
Change-Id: Ica8dbe899eb257603ce6f7b2ea224c6533bdea46
Reviewed-by: Matthieu Patou <mat@matws.net>
Signed-off-by: Matthieu Patou <mat@matws.net>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Matthieu Patou <mat@samba.org>
Autobuild-Date(master): Thu Oct 2 14:27:02 CEST 2014 on sn-devel-104
idl: improve frsrpc by adding missing flag, fixing typo (W -> VV) and making needed structure public
Change-Id: Ia507b5f627464ab78a145e54b276fc8d64ee3c14
Signed-off-by: Matthieu Patou <mat@matws.net>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Bump version to 1.1.2.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Matthieu Patou <mat@matws.net>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Oct 2 12:00:14 CEST 2014 on sn-devel-104
swrap: Add support for eventfd with unsigned count variable.
The prototype in glibc 2.20.90 changed.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Add a trace message for swrap_socket().
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Implement fcntl() to catch F_DUPFD.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Include the function name in the debug output.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Silence alignment warnings.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Fix type punning warnings when loading functions.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Fix access to struct members in log messages.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Fix whitespace errors.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Update copyright notice.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Wrap fopen to detect stale file descriptors.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Use swrap_address in swrap_accept().
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Remove unused sockaddr_dup() function.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Use swrap_address in the socket_info struct.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Use a sockaddr_un for the unix path in socket_info.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Rename swrap_pcap_dump_packet().
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Rename swrap_pcap_get_fd().
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Rename swrap_marshall_packet().
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Rename swrap_packet_init().
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Rename socket_wrapper_pcap_file().
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: Fix type punning warnings.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
swrap: fix build when neither HAVE_STRUCT_IN_PKTINFO nor IP_RECVDSTADDR is defined
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
s3: smb2cli: query info return length check was reversed.
Make it identical to the check in libcli/smb/smb2cli_ioctl.c
https://bugzilla.samba.org/show_bug.cgi?id=10848
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: "Stefan (metze) Metzmacher" <metze@samba.org>
Reviewed-by: David Disseldorp <ddiss@suse.de>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Oct 2 04:42:26 CEST 2014 on sn-devel-104
regedit: Introduce a new API to build the dialogs.
This helps make new dialogs easier to create, because it provides some
common building blocks and a consistent way to deal with user input.
Dialogs are divided into sections that stack vertically, and common
sections for typical UI things like text boxes, option lists, and
buttons are provided.
The old dialogs are rewritten to use this API.
Signed-off-by: Chris Davis <cd.rattan@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
regedit: add search feature.
Open up a search input with '/'. 'x' key gets the next
result.
This patch also ensures that keys are always sorted, so
that the search order matches the order the keys appear
on screen.
TODO:
+ flesh out search interface
+ find previous
+ search values
Signed-off-by: Chris Davis <cd.rattan@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
regedit: add padding for key labels when there's not a prefix.
Signed-off-by: Chris Davis <cd.rattan@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>