6 uuid("12345778-1234-abcd-0001-00000001"),
8 pointer_default(unique),
9 helpstring("Active Directory Replication LDAP Blobs")
12 declare bitmap drsuapi_DsReplicaSyncOptions;
13 declare bitmap drsuapi_DsReplicaNeighbourFlags;
14 declare [v1_enum] enum drsuapi_DsAttributeId;
17 * replPropertyMetaData
22 drsuapi_DsAttributeId attid;
24 NTTIME_1sec orginating_time;
25 GUID orginating_invocation_id;
28 } replPropertyMetaData1;
33 replPropertyMetaData1 array[count];
34 } replPropertyMetaDataCtr1;
36 typedef [nodiscriminant] union {
37 [case(1)] replPropertyMetaDataCtr1 ctr1;
38 } replPropertyMetaDataCtr;
40 typedef [public] struct {
43 [switch_is(version)] replPropertyMetaDataCtr ctr;
44 } replPropertyMetaDataBlob;
46 void decode_replPropertyMetaData(
47 [in] replPropertyMetaDataBlob blob
58 drsuapi_DsReplicaCursor cursors[count];
59 } replUpToDateVectorCtr1;
64 drsuapi_DsReplicaCursor2 cursors[count];
65 } replUpToDateVectorCtr2;
67 typedef [nodiscriminant] union {
68 [case(1)] replUpToDateVectorCtr1 ctr1;
69 [case(2)] replUpToDateVectorCtr2 ctr2;
70 } replUpToDateVectorCtr;
72 typedef [public] struct {
75 [switch_is(version)] replUpToDateVectorCtr ctr;
76 } replUpToDateVectorBlob;
78 void decode_replUpToDateVector(
79 [in] replUpToDateVectorBlob blob
87 typedef [public,gensize] struct {
89 } repsFromTo1OtherInfo;
91 typedef [public,gensize,flag(NDR_PAHEX)] struct {
92 /* this includes the 8 bytes of the repsFromToBlob header */
93 [value(ndr_size_repsFromTo1(r, ndr->flags)+8)] uint32 blobsize;
94 uint32 consecutive_sync_failures;
95 NTTIME_1sec last_success;
96 NTTIME_1sec last_attempt;
97 WERROR result_last_attempt;
98 [relative] repsFromTo1OtherInfo *other_info;
99 [value(ndr_size_repsFromTo1OtherInfo(other_info, ndr->flags))] uint32 other_info_length;
100 drsuapi_DsReplicaNeighbourFlags replica_flags;
103 drsuapi_DsReplicaHighWaterMark highwatermark;
104 GUID source_dsa_obj_guid; /* the 'objectGuid' field of the CN=NTDS Settings object */
105 GUID source_dsa_invocation_id; /* the 'invocationId' field of the CN=NTDS Settings object */
109 typedef [nodiscriminant] union {
110 [case(1)] repsFromTo1 ctr1;
113 typedef [public] struct {
116 [switch_is(version)] repsFromTo ctr;
119 void decode_repsFromTo(
120 [in] repsFromToBlob blob
124 * partialAttributeSet
126 * w2k3 uses version 1
130 drsuapi_DsAttributeId array[count];
131 } partialAttributeSetCtr1;
133 typedef [nodiscriminant] union {
134 [case(1)] partialAttributeSetCtr1 ctr1;
135 } partialAttributeSetCtr;
137 typedef [public] struct {
140 [switch_is(version)] partialAttributeSetCtr ctr;
141 } partialAttributeSetBlob;
143 void decode_partialAttributeSet(
144 [in] partialAttributeSetBlob blob
149 replUpToDateVectorCtr1 uptodateness_vector;
150 } ldapControlDirSyncExtraData;
152 typedef [nodiscriminant,gensize] union {
154 [default] ldapControlDirSyncExtraData data;
155 } ldapControlDirSyncExtra;
158 [value(3)] uint32 u1;
162 [value(ndr_size_ldapControlDirSyncExtra(&extra, extra.data.uptodateness_vector.count, 0))]
164 drsuapi_DsReplicaHighWaterMark highwatermark;
166 [switch_is(extra_length)] ldapControlDirSyncExtra extra;
167 } ldapControlDirSyncBlob;
169 typedef [public,relative_base] struct {
170 [charset(DOS),value("MSDS")] uint8 msds[4];
171 [subcontext(0)] ldapControlDirSyncBlob blob;
172 } ldapControlDirSyncCookie;
174 void decode_ldapControlDirSync(
175 [in] ldapControlDirSyncCookie cookie
178 typedef [public] struct {
183 typedef [public] struct {
184 DsCompressedChunk chunks[5];
187 void decode_DsCompressed(
188 [in] DsCompressedBlob blob