summaryrefslogtreecommitdiff
path: root/source4/librpc/idl/drsblobs.idl
blob: 20b353c1eab00869bfd2aeed3fe25ca3f5a81fac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#include "idl_types.h"

[
  uuid("38578646-4566-4564-2244-275796345667"),
  version(0.0),
  helpstring("Active Directory Replication LDAP Blobs")
]
interface drsblobs {
	/*
	 * replPropertyMetaData
	 * w2k  uses version 1
	 * w2k3 uses version 1
	 */
	typedef struct {
		uint32 attribute_id;
		uint32 version;
		NTTIME_1sec orginating_time;
		GUID orginating_dsa;
		uint64 orginating_usn;
		uint64 local_usn;
	} replPropertyMetaData1;

	typedef struct {
		uint32 unknown1;
		uint32 count;
		uint32 unknown2;
		replPropertyMetaData1 array[count];
	} replPropertyMetaDataCtr1;

	typedef [nodiscriminant] union {
		[case(1)] replPropertyMetaDataCtr1 ctr1;
	} replPropertyMetaDataCtr;
	
	typedef [public] struct {
		uint32 version;
		[switch_is(version)] replPropertyMetaDataCtr ctr;
	} replPropertyMetaDataBlob;

	void decode_replPropertyMetaData(
		[in] replPropertyMetaDataBlob blob
		);

	/*
	 * replUpToDateVector
	 * w2k  uses version 1
	 * w2k3 uses version 2
	 */
	typedef struct {
		GUID dsa;
		uint64 usn;
	} replUpToDateVector1;

	typedef struct {
		uint32 unknown1;
		uint32 count;
		uint32 unknown2;
		replUpToDateVector1 array[count];
	} replUpToDateVectorCtr1;

	typedef struct {
		GUID dsa;
		uint64 usn;
		NTTIME_1sec time;
	} replUpToDateVector2;

	typedef struct {
		uint32 unknown1;
		uint32 count;
		uint32 unknown2;
		replUpToDateVector2 array[count];
	} replUpToDateVectorCtr2;

	typedef [nodiscriminant] union {
		[case(1)] replUpToDateVectorCtr1 ctr1;
		[case(2)] replUpToDateVectorCtr2 ctr2;
	} replUpToDateVectorCtr;

	typedef [public] struct {
		uint32 version;
		[switch_is(version)] replUpToDateVectorCtr ctr;
	} replUpToDateVectorBlob;

	void decode_replUpToDateVector(
		[in] replUpToDateVectorBlob blob
		);

	/*
	 * repsFrom/repsTo
	 * w2k  uses version 1
	 * w2k3 uses version 1
	 */
	typedef [flag(NDR_PAHEX)] struct {
		NTTIME_1sec time1;
		NTTIME_1sec time2;
		uint32 unknown1[4];
		uint8 unknown2[84];
		uint32 unknown3;
		uint64 usn1;
		uint32 unknown4;
		uint32 unknown5;
		uint64 usn2;
		GUID guid1;
		GUID guid2;
		uint32 unknown6[4];
		asclstr dns_name;
	} repsFromTo1;

	typedef [nodiscriminant] union {
		[case(1)] repsFromTo1 ctr1;
	} repsFromTo;

	typedef [public,gensize] struct {
		uint32 version;
		uint32 unknown1;
		[value(ndr_size_repsFromToBlob(0, r, ndr->flags))] uint32 blobsize;
		uint32 unknown2;
		[switch_is(version)] repsFromTo ctr;
	} repsFromToBlob;

	void decode_repsFromTo(
		[in] repsFromToBlob blob
		);
}