3 import
"security.idl", "misc.idl", "samr.idl";
6 uuid("e3514235-4b06-11d1-ab04-00c04fc2dcd2"),
8 endpoint("ncacn_np:[\\pipe\\lsass]","ncacn_np:[\\pipe\\protected_storage]", "ncacn_ip_tcp:", "ncalrpc:"),
10 helpstring("Active Directory Replication"),
11 helper
("../librpc/ndr/ndr_drsuapi.h"),
12 pointer_default(unique)
16 typedef bitmap samr_GroupAttrs samr_GroupAttrs
;
20 typedef [bitmap32bit
] bitmap
{
21 DRSUAPI_SUPPORTED_EXTENSION_BASE
= 0x00000001,
22 DRSUAPI_SUPPORTED_EXTENSION_ASYNC_REPLICATION
= 0x00000002,
23 DRSUAPI_SUPPORTED_EXTENSION_REMOVEAPI
= 0x00000004,
24 DRSUAPI_SUPPORTED_EXTENSION_MOVEREQ_V2
= 0x00000008,
25 DRSUAPI_SUPPORTED_EXTENSION_GETCHG_COMPRESS
= 0x00000010,
26 DRSUAPI_SUPPORTED_EXTENSION_DCINFO_V1
= 0x00000020,
27 DRSUAPI_SUPPORTED_EXTENSION_RESTORE_USN_OPTIMIZATION
= 0x00000040,
28 DRSUAPI_SUPPORTED_EXTENSION_00000080
= 0x00000080,
29 DRSUAPI_SUPPORTED_EXTENSION_KCC_EXECUTE
= 0x00000100,
30 DRSUAPI_SUPPORTED_EXTENSION_ADDENTRY_V2
= 0x00000200,
31 DRSUAPI_SUPPORTED_EXTENSION_LINKED_VALUE_REPLICATION
= 0x00000400,
32 DRSUAPI_SUPPORTED_EXTENSION_DCINFO_V2
= 0x00000800,
33 DRSUAPI_SUPPORTED_EXTENSION_INSTANCE_TYPE_NOT_REQ_ON_MOD
= 0x00001000,
34 DRSUAPI_SUPPORTED_EXTENSION_CRYPTO_BIND
= 0x00002000,
35 DRSUAPI_SUPPORTED_EXTENSION_GET_REPL_INFO
= 0x00004000,
36 DRSUAPI_SUPPORTED_EXTENSION_STRONG_ENCRYPTION
= 0x00008000,
37 DRSUAPI_SUPPORTED_EXTENSION_DCINFO_V01
= 0x00010000,
38 DRSUAPI_SUPPORTED_EXTENSION_TRANSITIVE_MEMBERSHIP
= 0x00020000,
39 DRSUAPI_SUPPORTED_EXTENSION_ADD_SID_HISTORY
= 0x00040000,
40 DRSUAPI_SUPPORTED_EXTENSION_POST_BETA3
= 0x00080000,
41 DRSUAPI_SUPPORTED_EXTENSION_00100000
= 0x00100000,
42 DRSUAPI_SUPPORTED_EXTENSION_GET_MEMBERSHIPS2
= 0x00200000,
43 DRSUAPI_SUPPORTED_EXTENSION_GETCHGREQ_V6
= 0x00400000,
44 DRSUAPI_SUPPORTED_EXTENSION_NONDOMAIN_NCS
= 0x00800000,
45 DRSUAPI_SUPPORTED_EXTENSION_GETCHGREQ_V8
= 0x01000000,
46 DRSUAPI_SUPPORTED_EXTENSION_GETCHGREPLY_V5
= 0x02000000,
47 DRSUAPI_SUPPORTED_EXTENSION_GETCHGREPLY_V6
= 0x04000000,
49 * the following 3 have the same value
50 * repadmin.exe /bind says that
52 DRSUAPI_SUPPORTED_EXTENSION_ADDENTRYREPLY_V3
= 0x08000000,
53 DRSUAPI_SUPPORTED_EXTENSION_GETCHGREPLY_V7
= 0x08000000,
54 DRSUAPI_SUPPORTED_EXTENSION_VERIFY_OBJECT
= 0x08000000,
55 DRSUAPI_SUPPORTED_EXTENSION_XPRESS_COMPRESS
= 0x10000000,
56 DRSUAPI_SUPPORTED_EXTENSION_20000000
= 0x20000000,
57 DRSUAPI_SUPPORTED_EXTENSION_40000000
= 0x40000000,
58 DRSUAPI_SUPPORTED_EXTENSION_80000000
= 0x80000000
59 } drsuapi_SupportedExtensions
;
61 typedef [bitmap32bit
] bitmap
{
62 DRSUAPI_SUPPORTED_EXTENSION_ADAM
= 0x00000001,
63 DRSUAPI_SUPPORTED_EXTENSION_LH_BETA2
= 0x00000002
64 } drsuapi_SupportedExtensionsExt
;
66 /* this is used by w2k */
68 drsuapi_SupportedExtensions supported_extensions
;
71 } drsuapi_DsBindInfo24
;
73 /* this is used by w2k3 */
75 drsuapi_SupportedExtensions supported_extensions
;
79 } drsuapi_DsBindInfo28
;
81 /* this is used by w2k8 */
83 drsuapi_SupportedExtensions supported_extensions
;
87 drsuapi_SupportedExtensionsExt supported_extensions_ext
;
89 } drsuapi_DsBindInfo48
;
92 [flag
(NDR_REMAINING
)] DATA_BLOB info
;
93 } drsuapi_DsBindInfoFallBack
;
95 typedef [nodiscriminant
] union {
96 [case(24)][subcontext
(4)] drsuapi_DsBindInfo24 info24
;
97 [case(28)][subcontext
(4)] drsuapi_DsBindInfo28 info28
;
98 [case(48)][subcontext
(4)] drsuapi_DsBindInfo48 info48
;
99 [default][subcontext
(4)] drsuapi_DsBindInfoFallBack FallBack
;
100 } drsuapi_DsBindInfo
;
102 /* the drsuapi_DsBindInfoCtr was this before
103 * typedef [flag(NDR_PAHEX)] struct {
104 * [range(1,10000)] uint32 length;
105 * [size_is(length)] uint8 data[];
106 * } drsuapi_DsBindInfo;
108 * but we don't want the caller to manually decode this blob,
109 * so we're doing it here
113 [range(1,10000)] uint32 length
;
114 [switch_is(length
)] drsuapi_DsBindInfo info
;
115 } drsuapi_DsBindInfoCtr
;
117 /* this is a magic guid you need to pass to DsBind to make drsuapi_DsWriteAccountSpn() work
119 * maybe the bind_guid could also be the invocation_id see drsuapi_DsReplicaConnection04
121 const char *DRSUAPI_DS_BIND_GUID
= "e24d201a-4fd6-11d1-a3da-0000f875ae0d";
123 * this magic guid are needed to fetch the whole tree with drsuapi_DsGetNCChanges()
124 * as administrator and this values are also used in the destination_dsa_guid field
125 * of drsuapi_DsGetNCChangesReq5/8 and the source_dsa_guid is zero.
127 const char *DRSUAPI_DS_BIND_GUID_W2K
= "6abec3d1-3054-41c8-a362-5a0c5b7d5d71";
128 const char *DRSUAPI_DS_BIND_GUID_W2K3
= "6afab99c-6e26-464a-975f-f58f105218bc";
130 [public] WERROR drsuapi_DsBind
(
131 [in,unique] GUID
*bind_guid
,
132 [in,out,unique] drsuapi_DsBindInfoCtr
*bind_info
,
133 [out] policy_handle
*bind_handle
138 WERROR drsuapi_DsUnbind
(
139 [in,out] policy_handle
*bind_handle
144 typedef [public,gensize
] struct {
145 [value
(ndr_size_drsuapi_DsReplicaObjectIdentifier
(r
, ndr
->iconv_convenience
, ndr
->flags
)-4)] uint32 __ndr_size
;
146 [value
(ndr_size_dom_sid28
(&sid
, ndr
->flags
))] uint32 __ndr_size_sid
;
149 [value
(strlen_m
(dn
))] uint32 __ndr_size_dn
;
150 [charset
(UTF16
),size_is(__ndr_size_dn
+1)] uint16 dn
[];
151 } drsuapi_DsReplicaObjectIdentifier
;
153 typedef [public] bitmap
{
154 DRSUAPI_DS_REPLICA_SYNC_ASYNCHRONOUS_OPERATION
= 0x00000001,
155 DRSUAPI_DS_REPLICA_SYNC_WRITEABLE
= 0x00000002,
156 DRSUAPI_DS_REPLICA_SYNC_PERIODIC
= 0x00000004,
157 DRSUAPI_DS_REPLICA_SYNC_INTERSITE_MESSAGING
= 0x00000008,
158 DRSUAPI_DS_REPLICA_SYNC_ALL_SOURCES
= 0x00000010,
159 DRSUAPI_DS_REPLICA_SYNC_FULL
= 0x00000020,
160 DRSUAPI_DS_REPLICA_SYNC_URGENT
= 0x00000040,
161 DRSUAPI_DS_REPLICA_SYNC_NO_DISCARD
= 0x00000080,
162 DRSUAPI_DS_REPLICA_SYNC_FORCE
= 0x00000100,
163 DRSUAPI_DS_REPLICA_SYNC_ADD_REFERENCE
= 0x00000200,
164 DRSUAPI_DS_REPLICA_SYNC_NEVER_COMPLETED
= 0x00000400,
165 DRSUAPI_DS_REPLICA_SYNC_TWO_WAY
= 0x00000800,
166 DRSUAPI_DS_REPLICA_SYNC_NEVER_NOTIFY
= 0x00001000,
167 DRSUAPI_DS_REPLICA_SYNC_INITIAL
= 0x00002000,
168 DRSUAPI_DS_REPLICA_SYNC_USE_COMPRESSION
= 0x00004000,
169 DRSUAPI_DS_REPLICA_SYNC_ABANDONED
= 0x00008000,
170 DRSUAPI_DS_REPLICA_SYNC_INITIAL_IN_PROGRESS
= 0x00010000,
171 DRSUAPI_DS_REPLICA_SYNC_PARTIAL_ATTRIBUTE_SET
= 0x00020000,
172 DRSUAPI_DS_REPLICA_SYNC_REQUEUE
= 0x00040000,
173 DRSUAPI_DS_REPLICA_SYNC_NOTIFICATION
= 0x00080000,
174 DRSUAPI_DS_REPLICA_SYNC_ASYNCHRONOUS_REPLICA
= 0x00100000,
175 DRSUAPI_DS_REPLICA_SYNC_CRITICAL
= 0x00200000,
176 DRSUAPI_DS_REPLICA_SYNC_FULL_IN_PROGRESS
= 0x00400000,
177 DRSUAPI_DS_REPLICA_SYNC_PREEMPTED
= 0x00800000
178 } drsuapi_DsReplicaSyncOptions
;
181 drsuapi_DsReplicaObjectIdentifier
*naming_context
;
182 GUID source_dsa_guid
;
183 astring
*other_info
; /* I assume this is related to the repsFromTo1OtherInfo dns_name */
184 drsuapi_DsReplicaSyncOptions options
;
185 } drsuapi_DsReplicaSyncRequest1
;
187 typedef [switch_type(int32
)] union {
188 [case(1)] drsuapi_DsReplicaSyncRequest1 req1
;
189 } drsuapi_DsReplicaSyncRequest
;
191 WERROR drsuapi_DsReplicaSync
(
192 [in] policy_handle
*bind_handle
,
194 [in,switch_is(level
)] drsuapi_DsReplicaSyncRequest req
199 typedef [public] struct {
200 hyper tmp_highest_usn
; /* updated after each object update */
202 hyper highest_usn
; /* updated after a full replication cycle */
203 } drsuapi_DsReplicaHighWaterMark
;
205 typedef [public] struct {
206 GUID source_dsa_invocation_id
; /* the 'invocationId' field of the CN=NTDS Settings object */
207 hyper highest_usn
; /* updated after a full replication cycle */
208 } drsuapi_DsReplicaCursor
;
211 [value
(1)] uint32
version;
212 [value
(0)] uint32 reserved1
;
213 [range(0,0x100000)] uint32 count
;
214 [value
(0)] uint32 reserved2
;
215 [size_is(count
)] drsuapi_DsReplicaCursor cursors
[];
216 } drsuapi_DsReplicaCursorCtrEx
;
218 typedef [public] bitmap
{
219 /* the _WRITEABLE flag indicates a replication with all attributes
223 DRSUAPI_DS_REPLICA_NEIGHBOUR_WRITEABLE
= 0x00000010,
224 DRSUAPI_DS_REPLICA_NEIGHBOUR_SYNC_ON_STARTUP
= 0x00000020,
225 DRSUAPI_DS_REPLICA_NEIGHBOUR_DO_SCHEDULED_SYNCS
= 0x00000040,
226 DRSUAPI_DS_REPLICA_NEIGHBOUR_USE_ASYNC_INTERSIDE_TRANSPORT
= 0x00000080,
227 DRSUAPI_DS_REPLICA_NEIGHBOUR_TWO_WAY_SYNC
= 0x00000200,
228 DRSUAPI_DS_REPLICA_NEIGHBOUR_RETURN_OBJECT_PARENTS
= 0x00000800,
229 DRSUAPI_DS_REPLICA_NEIGHBOUR_FULL_IN_PROGRESS
= 0x00001000, /* was 0x00010000, */
230 DRSUAPI_DS_REPLICA_NEIGHBOUR_FULL_NEXT_PACKET
= 0x00002000, /* was 0x00020000, */
231 DRSUAPI_DS_REPLICA_NEIGHBOUR_NEVER_SYNCED
= 0x00200000,
232 DRSUAPI_DS_REPLICA_NEIGHBOUR_PREEMPTED
= 0x01000000,
233 DRSUAPI_DS_REPLICA_NEIGHBOUR_IGNORE_CHANGE_NOTIFICATIONS
= 0x04000000,
234 DRSUAPI_DS_REPLICA_NEIGHBOUR_DISABLE_SCHEDULED_SYNC
= 0x08000000,
236 * the following NOTE applies to DsGetNCChangesRequest5:
237 * - the data is only compressed when 10 or more objects are replicated
238 * - but there could also be a size limit of 35 KBytes or something like that
239 * - the reply is DsGetNCChangesCtr2
240 * - maybe the same applies to DsGetNCChangesRequest8...
244 DRSUAPI_DS_REPLICA_NEIGHBOUR_COMPRESS_CHANGES
= 0x10000000,
245 DRSUAPI_DS_REPLICA_NEIGHBOUR_NO_CHANGE_NOTIFICATIONS
= 0x20000000,
246 DRSUAPI_DS_REPLICA_NEIGHBOUR_PARTIAL_ATTRIBUTE_SET
= 0x40000000
247 } drsuapi_DsReplicaNeighbourFlags
;
249 typedef [flag
(NDR_PAHEX
),v1_enum] enum {
250 DRSUAPI_EXOP_NONE
= 0x00000000,
251 DRSUAPI_EXOP_FSMO_REQ_ROLE
= 0x00000001,
252 DRSUAPI_EXOP_FSMO_RID_ALLOC
= 0x00000002,
253 DRSUAPI_EXOP_FSMO_RID_REQ_ROLE
= 0x00000003,
254 DRSUAPI_EXOP_FSMO_REQ_PDC
= 0x00000004,
255 DRSUAPI_EXOP_FSMO_ABANDON_ROLE
= 0x00000005,
256 DRSUAPI_EXOP_REPL_OBJ
= 0x00000006,
257 DRSUAPI_EXOP_REPL_SECRET
= 0x00000007
258 } drsuapi_DsExtendedOperation
;
260 typedef [flag
(NDR_PAHEX
),v1_enum] enum {
261 DRSUAPI_EXOP_ERR_NONE
= 0x00000000,
262 DRSUAPI_EXOP_ERR_SUCCESS
= 0x00000001,
263 DRSUAPI_EXOP_ERR_UNKNOWN_OP
= 0x00000002,
264 DRSUAPI_EXOP_ERR_FSMO_NOT_OWNER
= 0x00000003,
265 DRSUAPI_EXOP_ERR_UPDATE_ERR
= 0x00000004,
266 DRSUAPI_EXOP_ERR_EXCEPTION
= 0x00000005,
267 DRSUAPI_EXOP_ERR_UNKNOWN_CALLER
= 0x00000006,
268 DRSUAPI_EXOP_ERR_RID_ALLOC
= 0x00000007,
269 DRSUAPI_EXOP_ERR_FSMO_OWNER_DELETED
= 0x00000008,
270 DRSUAPI_EXOP_ERR_FMSO_PENDING_OP
= 0x00000009,
271 DRSUAPI_EXOP_ERR_MISMATCH
= 0x0000000A,
272 DRSUAPI_EXOP_ERR_COULDNT_CONTACT
= 0x0000000B,
273 DRSUAPI_EXOP_ERR_FSMO_REFUSING_ROLES
= 0x0000000C,
274 DRSUAPI_EXOP_ERR_DIR_ERROR
= 0x0000000D,
275 DRSUAPI_EXOP_ERR_FSMO_MISSING_SETTINGS
= 0x0000000E,
276 DRSUAPI_EXOP_ERR_ACCESS_DENIED
= 0x0000000F,
277 DRSUAPI_EXOP_ERR_PARAM_ERROR
= 0x00000010
278 } drsuapi_DsExtendedError
;
281 GUID destination_dsa_guid
;
282 GUID source_dsa_invocation_id
; /* the 'invocationId' field of the CN=NTDS Settings object */
283 [ref] drsuapi_DsReplicaObjectIdentifier
*naming_context
;
284 drsuapi_DsReplicaHighWaterMark highwatermark
;
285 drsuapi_DsReplicaCursorCtrEx
*uptodateness_vector
;
286 drsuapi_DsReplicaNeighbourFlags replica_flags
;
287 uint32 max_object_count
; /* w2k3 uses min(133,max(100,max_object_count)) */
288 uint32 max_ndr_size
; /* w2k3 seems to ignore this */
289 drsuapi_DsExtendedOperation extended_op
;
291 } drsuapi_DsGetNCChangesRequest5
;
294 * In DRSUAPI all attributes with syntax 2.5.5.2
295 * are identified by uint32 values
297 * the following table shows the mapping used between the two representations
298 * e.g. - objectClass 'nTDSDSA' has governsID: 1.2.840.113556.1.5.7000.47
299 * and a UINT32-ID of '0x0017002F'.
300 * - so the OID 1.2.840.113556.1.5.7000.47 is splitted into a
301 * OID-prefix: 1.2.840.113556.1.5.7000
302 * and a value: 47 => 0x2F
303 * - the mapping table gives a UINT32-prefix: 0x00170000
304 * - and the UINT32-ID is 0x0017002F = 0x00170000 | 0x2F
306 * This prefix mapping table is replied in the drsuapi_DsReplicaOIDMapping_Ctr
307 * array. The following are the default mappings of w2k3
309 * OID-prefix => UINT32-Id prefix
311 * 2.5.4.* => 0x00000000 (standard attributes RFC2256 core.schema)
312 * 2.5.6.* => 0x00010000 (standard object classes RFC2256 core.schema)
313 * 1.2.840.113556.1.2.* => 0x00020000
314 * 1.2.840.113556.1.3.* => 0x00030000
315 * 2.5.5.* => 0x00080000 (attributeSyntax OID's)
316 * 1.2.840.113556.1.4.* => 0x00090000
317 * 1.2.840.113556.1.5.* => 0x000A0000
318 * 2.16.840.1.113730.3.* => 0x00140000
319 * 0.9.2342.19200300.100.1.* => 0x00150000
320 * 2.16.840.1.113730.3.1.* => 0x00160000
321 * 1.2.840.113556.1.5.7000.* => 0x00170000
322 * 2.5.21.* => 0x00180000 (attrs for SubSchema)
323 * 2.5.18.* => 0x00190000 (createTimeStamp,modifyTimeStamp, SubSchema)
324 * 2.5.20.* => 0x001A0000
325 * 1.3.6.1.4.1.1466.101.119.* => 0x001B0000 (dynamicObject, entryTTL)
326 * 2.16.840.1.113730.3.2.* => 0x001C0000
327 * 1.3.6.1.4.1.250.1.* => 0x001D0000
328 * 1.2.840.113549.1.9.* => 0x001E0000 (unstructuredAddress,unstructuredName)
329 * 0.9.2342.19200300.100.4.* => 0x001F0000
331 * Here's a list of used 'attributeSyntax' OID's
333 * 2.5.5.1 => Object(DS-DN) string
334 * struct drsuapi_DsObjectIdentifier3
336 * 2.5.5.2 => OID-string
337 * => all values are represented as uint32 values in drsuapi
338 * => governsID, attributeID and attributeSyntax returned as OID-Strings in LDAP
339 * => mayContain, mustContain and all other attributes with 2.5.5.2 syntax
340 * are returned as attribute names
342 * 2.5.5.4 => String(Teletex) case-insensitive string with teletex charset
344 * 2.5.5.5 => String(IA5) case-sensitive string
346 * 2.5.5.6 => String(Numeric)
347 * => eg. internationalISDNNumber
349 * 2.5.5.7 => Object(DN-Binary) B:<byte count>:<bytes>:<object DN>
350 * => e.g. wellKnownObjects
356 * 2.5.5.10 => DATA_BLOB
359 * 2.5.5.11 => LDAP timestring
362 * 2.5.5.12 => String(Unicode) case-insensitive string
363 * => 'standard strings'
365 * 2.5.5.13 => Object(Presentation-Address) string
366 * => used in objectClass applicationEntity
368 * 2.5.5.14 => Object(DN-String) S:<char count>:<string>:<object DN>
371 * 2.5.5.15 => ntSecurityDescriptor
375 * 2.5.5.17 => dom_sid
377 typedef [nopush
,nopull
] struct {
378 [range(0,10000),value
(ndr_size_drsuapi_DsReplicaOID_oid
(oid
, 0))] uint32 __ndr_size
;
379 [size_is(__ndr_size
),charset
(DOS
)] uint8
*oid
; /* it's encoded with asn1_write_OID_String() */
380 } drsuapi_DsReplicaOID
;
384 drsuapi_DsReplicaOID oid
;
385 } drsuapi_DsReplicaOIDMapping
;
387 typedef [public] struct {
388 [range(0,0x100000)] uint32 num_mappings
;
389 [size_is(num_mappings
)] drsuapi_DsReplicaOIDMapping
*mappings
;
390 } drsuapi_DsReplicaOIDMapping_Ctr
;
392 typedef [flag
(NDR_PAHEX
),v1_enum] enum {
393 DRSUAPI_OBJECTCLASS_top
= 0x00010000,
394 DRSUAPI_OBJECTCLASS_classSchema
= 0x0003000d,
395 DRSUAPI_OBJECTCLASS_attributeSchema
= 0x0003000e
396 } drsuapi_DsObjectClassId
;
398 typedef [flag
(NDR_PAHEX
),v1_enum,public] enum {
399 DRSUAPI_ATTRIBUTE_objectClass
= 0x00000000,
400 DRSUAPI_ATTRIBUTE_description
= 0x0000000d,
401 DRSUAPI_ATTRIBUTE_member
= 0x0000001f,
402 DRSUAPI_ATTRIBUTE_instanceType
= 0x00020001,
403 DRSUAPI_ATTRIBUTE_whenCreated
= 0x00020002,
404 DRSUAPI_ATTRIBUTE_hasMasterNCs
= 0x0002000e,
405 DRSUAPI_ATTRIBUTE_governsID
= 0x00020016,
406 DRSUAPI_ATTRIBUTE_attributeID
= 0x0002001e,
407 DRSUAPI_ATTRIBUTE_attributeSyntax
= 0x00020020,
408 DRSUAPI_ATTRIBUTE_isSingleValued
= 0x00020021,
409 DRSUAPI_ATTRIBUTE_rangeLower
= 0x00020022,
410 DRSUAPI_ATTRIBUTE_rangeUpper
= 0x00020023,
411 DRSUAPI_ATTRIBUTE_dMDLocation
= 0x00020024,
412 DRSUAPI_ATTRIBUTE_objectVersion
= 0x0002004c,
413 DRSUAPI_ATTRIBUTE_invocationId
= 0x00020073,
414 DRSUAPI_ATTRIBUTE_showInAdvancedViewOnly
= 0x000200a9,
415 DRSUAPI_ATTRIBUTE_adminDisplayName
= 0x000200c2,
416 DRSUAPI_ATTRIBUTE_adminDescription
= 0x000200e2,
417 DRSUAPI_ATTRIBUTE_oMSyntax
= 0x000200e7,
418 DRSUAPI_ATTRIBUTE_ntSecurityDescriptor
= 0x00020119,
419 DRSUAPI_ATTRIBUTE_searchFlags
= 0x0002014e,
420 DRSUAPI_ATTRIBUTE_lDAPDisplayName
= 0x000201cc,
421 DRSUAPI_ATTRIBUTE_name
= 0x00090001,
422 DRSUAPI_ATTRIBUTE_userAccountControl
= 0x00090008,
423 DRSUAPI_ATTRIBUTE_currentValue
= 0x0009001b,
424 DRSUAPI_ATTRIBUTE_homeDirectory
= 0x0009002c,
425 DRSUAPI_ATTRIBUTE_homeDrive
= 0x0009002d,
426 DRSUAPI_ATTRIBUTE_scriptPath
= 0x0009003e,
427 DRSUAPI_ATTRIBUTE_profilePath
= 0x0009008b,
428 DRSUAPI_ATTRIBUTE_objectSid
= 0x00090092,
429 DRSUAPI_ATTRIBUTE_schemaIDGUID
= 0x00090094,
430 DRSUAPI_ATTRIBUTE_dBCSPwd
= 0x00090037,/* lmPwdHash */
431 DRSUAPI_ATTRIBUTE_logonHours
= 0x00090040,
432 DRSUAPI_ATTRIBUTE_userWorkstations
= 0x00090056,
433 DRSUAPI_ATTRIBUTE_unicodePwd
= 0x0009005a,/* ntPwdHash */
434 DRSUAPI_ATTRIBUTE_ntPwdHistory
= 0x0009005e,
435 DRSUAPI_ATTRIBUTE_priorValue
= 0x00090064,
436 DRSUAPI_ATTRIBUTE_supplementalCredentials
= 0x0009007d,
437 DRSUAPI_ATTRIBUTE_trustAuthIncoming
= 0x00090081,
438 DRSUAPI_ATTRIBUTE_trustAuthOutgoing
= 0x00090087,
439 DRSUAPI_ATTRIBUTE_lmPwdHistory
= 0x000900a0,
440 DRSUAPI_ATTRIBUTE_sAMAccountName
= 0x000900dd,
441 DRSUAPI_ATTRIBUTE_sAMAccountType
= 0x0009012e,
442 DRSUAPI_ATTRIBUTE_fSMORoleOwner
= 0x00090171,
443 DRSUAPI_ATTRIBUTE_systemFlags
= 0x00090177,
444 DRSUAPI_ATTRIBUTE_serverReference
= 0x00090203,
445 DRSUAPI_ATTRIBUTE_serverReferenceBL
= 0x00090204,
446 DRSUAPI_ATTRIBUTE_initialAuthIncoming
= 0x0009021b,
447 DRSUAPI_ATTRIBUTE_initialAuthOutgoing
= 0x0009021c,
448 DRSUAPI_ATTRIBUTE_wellKnownObjects
= 0x0009026a,
449 DRSUAPI_ATTRIBUTE_dNSHostName
= 0x0009026b,
450 DRSUAPI_ATTRIBUTE_isMemberOfPartialAttributeSet
= 0x0009027f,
451 DRSUAPI_ATTRIBUTE_userPrincipalName
= 0x00090290,
452 DRSUAPI_ATTRIBUTE_groupType
= 0x000902ee,
453 DRSUAPI_ATTRIBUTE_servicePrincipalName
= 0x00090303,
454 DRSUAPI_ATTRIBUTE_objectCategory
= 0x0009030e,
455 DRSUAPI_ATTRIBUTE_gPLink
= 0x0009037b,
456 DRSUAPI_ATTRIBUTE_msDS_Behavior_Version
= 0x000905b3,
457 DRSUAPI_ATTRIBUTE_msDS_KeyVersionNumber
= 0x000906f6,
458 DRSUAPI_ATTRIBUTE_msDS_HasDomainNCs
= 0x0009071c,
459 DRSUAPI_ATTRIBUTE_msDS_hasMasterNCs
= 0x0009072c
460 } drsuapi_DsAttributeId
;
463 [value
(1)] uint32
version;
464 [value
(0)] uint32 reserved1
;
465 [range(1,0x100000)] uint32 num_attids
;
466 [size_is(num_attids
)] drsuapi_DsAttributeId attids
[];
467 } drsuapi_DsPartialAttributeSet
;
470 GUID destination_dsa_guid
;
471 GUID source_dsa_invocation_id
; /* the 'invocationId' field of the CN=NTDS Settings object */
472 [ref] drsuapi_DsReplicaObjectIdentifier
*naming_context
;
473 drsuapi_DsReplicaHighWaterMark highwatermark
;
474 drsuapi_DsReplicaCursorCtrEx
*uptodateness_vector
;
475 drsuapi_DsReplicaNeighbourFlags replica_flags
;
476 uint32 max_object_count
; /* w2k3 uses min(133,max(100,max_object_count)) */
477 uint32 max_ndr_size
; /* w2k3 seems to ignore this */
478 drsuapi_DsExtendedOperation extended_op
;
480 drsuapi_DsPartialAttributeSet
*partial_attribute_set
;
481 drsuapi_DsPartialAttributeSet
*partial_attribute_set_ex
;
482 drsuapi_DsReplicaOIDMapping_Ctr mapping_ctr
;
483 } drsuapi_DsGetNCChangesRequest8
;
485 typedef [switch_type(int32
)] union {
486 [case(5)] drsuapi_DsGetNCChangesRequest5 req5
;
487 [case(8)] drsuapi_DsGetNCChangesRequest8 req8
;
488 } drsuapi_DsGetNCChangesRequest
;
490 typedef [public] struct {
491 GUID source_dsa_invocation_id
; /* the 'invocationId' field of the CN=NTDS Settings object */
492 hyper highest_usn
; /* updated after a full replication cycle */
493 NTTIME last_sync_success
;
494 } drsuapi_DsReplicaCursor2
;
497 [value
(2)] uint32
version;
498 [value
(0)] uint32 reserved1
;
499 [range(0,0x100000)] uint32 count
;
500 [value
(0)] uint32 reserved2
;
501 [size_is(count
)] drsuapi_DsReplicaCursor2 cursors
[];
502 } drsuapi_DsReplicaCursor2CtrEx
;
504 /* Generic DATA_BLOB values */
506 [range(0,10485760),value
(ndr_size_DATA_BLOB
(0,blob
,0))] uint32 __ndr_size
;
508 } drsuapi_DsAttributeValue
;
511 [range(0,10485760)] uint32 num_values
;
512 [size_is(num_values
)] drsuapi_DsAttributeValue
*values
;
513 } drsuapi_DsAttributeValueCtr
;
515 /* DN String values */
516 typedef [public,gensize
] struct {
517 [value
(ndr_size_drsuapi_DsReplicaObjectIdentifier3
(r
, ndr
->iconv_convenience
, ndr
->flags
))] uint32 __ndr_size
;
518 [value
(ndr_size_dom_sid28
(&sid
,ndr
->flags
))] uint32 __ndr_size_sid
;
521 [value
(strlen_m
(dn
))] uint32 __ndr_size_dn
;
522 [charset
(UTF16
)] uint16 dn
[__ndr_size_dn
+1];
523 } drsuapi_DsReplicaObjectIdentifier3
;
525 typedef [public,gensize
] struct {
526 [value
(ndr_size_drsuapi_DsReplicaObjectIdentifier3Binary
(r
, ndr
->iconv_convenience
, ndr
->flags
))] uint32 __ndr_size
;
527 [value
(ndr_size_dom_sid28
(&sid
,ndr
->flags
))] uint32 __ndr_size_sid
;
530 [value
(strlen_m
(dn
))] uint32 __ndr_size_dn
;
531 [charset
(UTF16
)] uint16 dn
[__ndr_size_dn
+1];
532 [value
(binary.length
+ 4)] uint32 __ndr_size_binary
;
533 [flag
(NDR_REMAINING
)] DATA_BLOB binary
;
534 } drsuapi_DsReplicaObjectIdentifier3Binary
;
536 typedef [public] struct {
537 drsuapi_DsAttributeId attid
;
538 drsuapi_DsAttributeValueCtr value_ctr
;
539 } drsuapi_DsReplicaAttribute
;
542 [range(0,1048576)] uint32 num_attributes
;
543 [size_is(num_attributes
)] drsuapi_DsReplicaAttribute
*attributes
;
544 } drsuapi_DsReplicaAttributeCtr
;
546 typedef [public] bitmap
{
547 DRSUAPI_DS_REPLICA_OBJECT_FROM_MASTER
= 0x00000001,
548 DRSUAPI_DS_REPLICA_OBJECT_DYNAMIC
= 0x00000002,
549 DRSUAPI_DS_REPLICA_OBJECT_REMOTE_MODIFY
= 0x00010000
550 } drsuapi_DsReplicaObjectFlags
;
552 typedef [public] struct {
553 drsuapi_DsReplicaObjectIdentifier
*identifier
;
554 drsuapi_DsReplicaObjectFlags flags
;
555 drsuapi_DsReplicaAttributeCtr attribute_ctr
;
556 } drsuapi_DsReplicaObject
;
560 NTTIME_1sec originating_change_time
;
561 GUID originating_invocation_id
;
562 hyper originating_usn
;
563 } drsuapi_DsReplicaMetaData
;
565 typedef [public] struct {
566 [range(0,1048576)] uint32 count
;
567 [size_is(count
)] drsuapi_DsReplicaMetaData meta_data
[];
568 } drsuapi_DsReplicaMetaDataCtr
;
570 typedef [public,noprint
] struct {
571 drsuapi_DsReplicaObjectListItemEx
*next_object
;
572 drsuapi_DsReplicaObject
object;
573 boolean32 is_nc_prefix
;
574 GUID
*parent_object_guid
;
575 drsuapi_DsReplicaMetaDataCtr
*meta_data_ctr
;
576 } drsuapi_DsReplicaObjectListItemEx
;
578 typedef [public,gensize
] struct {
579 GUID source_dsa_guid
; /* the 'objectGUID' field of the CN=NTDS Settings object */
580 GUID source_dsa_invocation_id
; /* the 'invocationId' field of the CN=NTDS Settings object */
581 drsuapi_DsReplicaObjectIdentifier
*naming_context
;
582 drsuapi_DsReplicaHighWaterMark old_highwatermark
;
583 drsuapi_DsReplicaHighWaterMark new_highwatermark
;
584 drsuapi_DsReplicaCursorCtrEx
*uptodateness_vector
;
585 drsuapi_DsReplicaOIDMapping_Ctr mapping_ctr
;
586 drsuapi_DsExtendedError extended_ret
; /* w2k sends the nc_object_count value here */
588 /* this +55 is sometimes +56, so I don't know where this comes from... --metze */
589 [value
(ndr_size_drsuapi_DsGetNCChangesCtr1
(r
,ndr
->iconv_convenience
,ndr
->flags
)+55)] uint32 __ndr_size
;
590 drsuapi_DsReplicaObjectListItemEx
*first_object
;
592 } drsuapi_DsGetNCChangesCtr1
;
595 * if the DRSUAPI_DS_LINKED_ATTRIBUTE_FLAG_ACTIVE flag
596 * isn't there it means the value is deleted
598 typedef [public] bitmap
{
599 DRSUAPI_DS_LINKED_ATTRIBUTE_FLAG_ACTIVE
= 0x00000001
600 } drsuapi_DsLinkedAttributeFlags
;
602 typedef [public] struct {
603 drsuapi_DsReplicaObjectIdentifier
*identifier
;
604 drsuapi_DsAttributeId attid
;
605 drsuapi_DsAttributeValue value
;
606 drsuapi_DsLinkedAttributeFlags flags
;
607 NTTIME_1sec originating_add_time
;
608 drsuapi_DsReplicaMetaData meta_data
;
609 } drsuapi_DsReplicaLinkedAttribute
;
611 typedef [public,gensize
] struct {
612 GUID source_dsa_guid
; /* the 'objectGUID' field of the CN=NTDS Settings object */
613 GUID source_dsa_invocation_id
; /* the 'invocationId' field of the CN=NTDS Settings object */
614 drsuapi_DsReplicaObjectIdentifier
*naming_context
;
615 drsuapi_DsReplicaHighWaterMark old_highwatermark
;
616 drsuapi_DsReplicaHighWaterMark new_highwatermark
;
617 drsuapi_DsReplicaCursor2CtrEx
*uptodateness_vector
;
618 drsuapi_DsReplicaOIDMapping_Ctr mapping_ctr
;
619 drsuapi_DsExtendedError extended_ret
;
621 /* this +55 is sometimes +56, so I don't know where this comes from... --metze */
622 [value
(ndr_size_drsuapi_DsGetNCChangesCtr6
(r
,ndr
->iconv_convenience
,ndr
->flags
)+55)] uint32 __ndr_size
;
623 drsuapi_DsReplicaObjectListItemEx
*first_object
;
625 uint32 nc_object_count
; /* estimated amount of objects in the whole NC */
626 uint32 nc_linked_attributes_count
; /* estimated amount of linked values in the whole NC */
627 [range(0,1048576)] uint32 linked_attributes_count
;
628 [size_is(linked_attributes_count
)] drsuapi_DsReplicaLinkedAttribute
*linked_attributes
;
630 } drsuapi_DsGetNCChangesCtr6
;
632 typedef [public] struct {
633 [subcontext
(0xFFFFFC01)] drsuapi_DsGetNCChangesCtr1 ctr1
;
634 } drsuapi_DsGetNCChangesCtr1TS
;
636 typedef [public] struct {
637 [subcontext
(0xFFFFFC01)] drsuapi_DsGetNCChangesCtr6 ctr6
;
638 } drsuapi_DsGetNCChangesCtr6TS
;
640 typedef [nopush
] struct {
641 uint32 decompressed_length
;
642 uint32 compressed_length
;
643 [subcontext
(4),subcontext_size
(compressed_length
),
644 compression
(NDR_COMPRESSION_MSZIP
,compressed_length
,decompressed_length
)]
645 drsuapi_DsGetNCChangesCtr1TS
*ts
;
646 } drsuapi_DsGetNCChangesMSZIPCtr1
;
648 typedef [nopush
] struct {
649 uint32 decompressed_length
;
650 uint32 compressed_length
;
651 [subcontext
(4),subcontext_size
(compressed_length
),
652 compression
(NDR_COMPRESSION_MSZIP
,compressed_length
,decompressed_length
)]
653 drsuapi_DsGetNCChangesCtr6TS
*ts
;
654 } drsuapi_DsGetNCChangesMSZIPCtr6
;
656 typedef [nopush
] struct {
657 uint32 decompressed_length
;
658 uint32 compressed_length
;
659 [subcontext
(4),subcontext_size
(compressed_length
),
660 compression
(NDR_COMPRESSION_XPRESS
,compressed_length
,decompressed_length
)]
661 drsuapi_DsGetNCChangesCtr1TS
*ts
;
662 } drsuapi_DsGetNCChangesXPRESSCtr1
;
664 typedef [nopush
] struct {
665 uint32 decompressed_length
;
666 uint32 compressed_length
;
667 [subcontext
(4),subcontext_size
(compressed_length
),
668 compression
(NDR_COMPRESSION_XPRESS
,compressed_length
,decompressed_length
)]
669 drsuapi_DsGetNCChangesCtr6TS
*ts
;
670 } drsuapi_DsGetNCChangesXPRESSCtr6
;
672 typedef [enum16bit
] enum {
673 DRSUAPI_COMPRESSION_TYPE_MSZIP
= 2,
674 DRSUAPI_COMPRESSION_TYPE_XPRESS
= 3
675 } drsuapi_DsGetNCChangesCompressionType
;
677 typedef [nodiscriminant
,flag
(NDR_PAHEX
)] union {
678 [case(1|
(DRSUAPI_COMPRESSION_TYPE_MSZIP
<<16))] drsuapi_DsGetNCChangesMSZIPCtr1 mszip1
;
679 [case(6|
(DRSUAPI_COMPRESSION_TYPE_MSZIP
<<16))] drsuapi_DsGetNCChangesMSZIPCtr6 mszip6
;
680 [case(1|
(DRSUAPI_COMPRESSION_TYPE_XPRESS
<<16))] drsuapi_DsGetNCChangesXPRESSCtr1 xpress1
;
681 [case(6|
(DRSUAPI_COMPRESSION_TYPE_XPRESS
<<16))] drsuapi_DsGetNCChangesXPRESSCtr6 xpress6
;
682 } drsuapi_DsGetNCChangesCompressedCtr
;
685 drsuapi_DsGetNCChangesMSZIPCtr1 mszip1
;
686 } drsuapi_DsGetNCChangesCtr2
;
689 [range(0,6)] int32 level
;
690 [range(2,3)] drsuapi_DsGetNCChangesCompressionType type
;
691 [switch_is(level |
(type
<<16))] drsuapi_DsGetNCChangesCompressedCtr ctr
;
692 } drsuapi_DsGetNCChangesCtr7
;
694 typedef [switch_type(int32
)] union {
695 [case(1)] drsuapi_DsGetNCChangesCtr1 ctr1
;
696 [case(2)] drsuapi_DsGetNCChangesCtr2 ctr2
;
697 [case(6)] drsuapi_DsGetNCChangesCtr6 ctr6
;
698 [case(7)] drsuapi_DsGetNCChangesCtr7 ctr7
;
699 } drsuapi_DsGetNCChangesCtr
;
701 WERROR drsuapi_DsGetNCChanges
(
702 [in] policy_handle
*bind_handle
,
704 [in,ref,switch_is(level
)] drsuapi_DsGetNCChangesRequest
*req
,
705 [out,ref] int32
*level_out
,
706 [out,ref,switch_is(*level_out
)] drsuapi_DsGetNCChangesCtr
*ctr
712 DRSUAPI_DS_REPLICA_UPDATE_ASYNCHRONOUS_OPERATION
= 0x00000001,
713 DRSUAPI_DS_REPLICA_UPDATE_WRITEABLE
= 0x00000002,
714 DRSUAPI_DS_REPLICA_UPDATE_ADD_REFERENCE
= 0x00000004,
715 DRSUAPI_DS_REPLICA_UPDATE_DELETE_REFERENCE
= 0x00000008,
716 DRSUAPI_DS_REPLICA_UPDATE_0x00000010
= 0x00000010
717 } drsuapi_DsReplicaUpdateRefsOptions
;
720 [ref] drsuapi_DsReplicaObjectIdentifier
*naming_context
;
721 [ref,charset
(DOS
),string] uint8
*dest_dsa_dns_name
;
723 drsuapi_DsReplicaUpdateRefsOptions options
;
724 } drsuapi_DsReplicaUpdateRefsRequest1
;
726 typedef [switch_type(int32
)] union {
727 [case(1)] drsuapi_DsReplicaUpdateRefsRequest1 req1
;
728 } drsuapi_DsReplicaUpdateRefsRequest
;
730 WERROR drsuapi_DsReplicaUpdateRefs
(
731 [in] policy_handle
*bind_handle
,
733 [in,switch_is(level
)] drsuapi_DsReplicaUpdateRefsRequest req
739 DRSUAPI_DS_REPLICA_ADD_ASYNCHRONOUS_OPERATION
= 0x00000001,
740 DRSUAPI_DS_REPLICA_ADD_WRITEABLE
= 0x00000002
742 } drsuapi_DsReplicaAddOptions
;
744 [todo
] WERROR DRSUAPI_REPLICA_ADD
();
749 DRSUAPI_DS_REPLICA_DELETE_ASYNCHRONOUS_OPERATION
= 0x00000001,
750 DRSUAPI_DS_REPLICA_DELETE_WRITEABLE
= 0x00000002
752 } drsuapi_DsReplicaDeleteOptions
;
754 [todo
] WERROR DRSUAPI_REPLICA_DEL
();
759 DRSUAPI_DS_REPLICA_MODIFY_ASYNCHRONOUS_OPERATION
= 0x00000001,
760 DRSUAPI_DS_REPLICA_MODIFY_WRITEABLE
= 0x00000002
761 } drsuapi_DsReplicaModifyOptions
;
763 [todo
] WERROR DRSUAPI_REPLICA_MODIFY
();
767 [todo
] WERROR DRSUAPI_VERIFY_NAMES
();
772 /* how are type 4 and 7 different from 2 and 3 ? */
773 typedef [v1_enum] enum {
774 DRSUAPI_DS_MEMBERSHIP_TYPE_UNIVERSAL_AND_DOMAIN_GROUPS
= 1,
775 DRSUAPI_DS_MEMBERSHIP_TYPE_DOMAIN_LOCAL_GROUPS
= 2,
776 DRSUAPI_DS_MEMBERSHIP_TYPE_DOMAIN_GROUPS
= 3,
777 DRSUAPI_DS_MEMBERSHIP_TYPE_DOMAIN_LOCAL_GROUPS2
= 4,
778 DRSUAPI_DS_MEMBERSHIP_TYPE_UNIVERSAL_GROUPS
= 5,
779 DRSUAPI_DS_MEMBERSHIP_TYPE_GROUPMEMBERS
= 6,
780 DRSUAPI_DS_MEMBERSHIP_TYPE_DOMAIN_GROUPS2
= 7
781 } drsuapi_DsMembershipType
;
785 [range(0,10000)] uint32 num_memberships
;
786 [range(0,10000)] uint32 num_sids
;
787 [size_is(num_memberships
)] drsuapi_DsReplicaObjectIdentifier
**info_array
;
788 [size_is(num_memberships
)] samr_GroupAttrs
*group_attrs
;
789 [size_is(num_sids
)] dom_sid28
**sids
;
790 } drsuapi_DsGetMembershipsCtr1
;
792 typedef [switch_type(int32
)] union {
793 [case(1)] drsuapi_DsGetMembershipsCtr1 ctr1
;
794 } drsuapi_DsGetMembershipsCtr
;
796 const int DRSUAPI_DS_MEMBERSHIP_FLAG_GROUP_ATTR
= 0x1;
799 [range(1,10000)] uint32 count
;
800 [size_is(count
)] drsuapi_DsReplicaObjectIdentifier
**info_array
;
802 drsuapi_DsMembershipType type
;
803 drsuapi_DsReplicaObjectIdentifier
*domain
;
804 } drsuapi_DsGetMembershipsRequest1
;
806 typedef [switch_type(int32
)] union {
807 [case(1)] drsuapi_DsGetMembershipsRequest1 req1
;
808 } drsuapi_DsGetMembershipsRequest
;
810 [todo
] WERROR drsuapi_DsGetMemberships
(
811 [in] policy_handle
*bind_handle
,
813 [in,ref] [switch_is(level
)] drsuapi_DsGetMembershipsRequest
*req
,
814 [out,ref] int32
*level_out
,
815 [out,ref] [switch_is(*level_out
)] drsuapi_DsGetMembershipsCtr
*ctr
820 [todo
] WERROR DRSUAPI_INTER_DOMAIN_MOVE
();
827 [range(0,0x00A00000)] uint32 length
;
828 [size_is(length
)] uint8
*data
;
829 } drsuapi_DsGetNT4ChangeLogRequest1
;
831 typedef [switch_type(uint32
)] union {
832 [case(1)] drsuapi_DsGetNT4ChangeLogRequest1 req1
;
833 } drsuapi_DsGetNT4ChangeLogRequest
;
836 [range(0,0x00A00000)] uint32 length1
;
837 [range(0,0x00A00000)] uint32 length2
;
845 [size_is(length1
)] uint8
*data1
;
846 [size_is(length2
)] uint8
*data2
;
847 } drsuapi_DsGetNT4ChangeLogInfo1
;
849 typedef [switch_type(uint32
)] union {
850 [case(1)] drsuapi_DsGetNT4ChangeLogInfo1 info1
;
851 } drsuapi_DsGetNT4ChangeLogInfo
;
853 [todo
] WERROR drsuapi_DsGetNT4ChangeLog
(
854 [in] policy_handle
*bind_handle
,
856 [in,ref] [switch_is(level
)] drsuapi_DsGetNT4ChangeLogRequest
*req
,
857 [out,ref] uint32
*level_out
,
858 [out,ref] [switch_is(*level_out
)] drsuapi_DsGetNT4ChangeLogInfo
*info
863 typedef [v1_enum] enum {
864 DRSUAPI_DS_NAME_STATUS_OK
= 0,
865 DRSUAPI_DS_NAME_STATUS_RESOLVE_ERROR
= 1,
866 DRSUAPI_DS_NAME_STATUS_NOT_FOUND
= 2,
867 DRSUAPI_DS_NAME_STATUS_NOT_UNIQUE
= 3,
868 DRSUAPI_DS_NAME_STATUS_NO_MAPPING
= 4,
869 DRSUAPI_DS_NAME_STATUS_DOMAIN_ONLY
= 5,
870 DRSUAPI_DS_NAME_STATUS_NO_SYNTACTICAL_MAPPING
= 6,
871 DRSUAPI_DS_NAME_STATUS_TRUST_REFERRAL
= 7
872 } drsuapi_DsNameStatus
;
874 typedef [v1_enum] enum {
875 DRSUAPI_DS_NAME_FLAG_NO_FLAGS
= 0x0,
876 DRSUAPI_DS_NAME_FLAG_SYNTACTICAL_ONLY
= 0x1,
877 DRSUAPI_DS_NAME_FLAG_EVAL_AT_DC
= 0x2,
878 DRSUAPI_DS_NAME_FLAG_GCVERIFY
= 0x4,
879 DRSUAPI_DS_NAME_FLAG_TRUST_REFERRAL
= 0x8
880 } drsuapi_DsNameFlags
;
882 typedef [v1_enum] enum {
883 DRSUAPI_DS_NAME_FORMAT_UNKNOWN
= 0,
884 DRSUAPI_DS_NAME_FORMAT_FQDN_1779
= 1,
885 DRSUAPI_DS_NAME_FORMAT_NT4_ACCOUNT
= 2,
886 DRSUAPI_DS_NAME_FORMAT_DISPLAY
= 3,
887 DRSUAPI_DS_NAME_FORMAT_GUID
= 6,
888 DRSUAPI_DS_NAME_FORMAT_CANONICAL
= 7,
889 DRSUAPI_DS_NAME_FORMAT_USER_PRINCIPAL
= 8,
890 DRSUAPI_DS_NAME_FORMAT_CANONICAL_EX
= 9,
891 DRSUAPI_DS_NAME_FORMAT_SERVICE_PRINCIPAL
= 10,
892 DRSUAPI_DS_NAME_FORMAT_SID_OR_SID_HISTORY
= 11,
893 DRSUAPI_DS_NAME_FORMAT_DNS_DOMAIN
= 12
894 } drsuapi_DsNameFormat
;
897 [string,charset
(UTF16
)] uint16
*str
;
898 } drsuapi_DsNameString
;
901 uint32 codepage
; /* 0x000004e4 - 1252 is german codepage*/
902 uint32 language
; /* 0x00000407 - german language ID*/
903 drsuapi_DsNameFlags format_flags
;
904 drsuapi_DsNameFormat format_offered
;
905 drsuapi_DsNameFormat format_desired
;
906 [range(1,10000)] uint32 count
;
907 [size_is(count
)] drsuapi_DsNameString
*names
;
908 } drsuapi_DsNameRequest1
;
910 typedef [switch_type(int32
)] union {
911 [case(1)] drsuapi_DsNameRequest1 req1
;
912 } drsuapi_DsNameRequest
;
915 drsuapi_DsNameStatus status
;
916 [charset
(UTF16
),string] uint16
*dns_domain_name
;
917 [charset
(UTF16
),string] uint16
*result_name
;
918 } drsuapi_DsNameInfo1
;
922 [size_is(count
)] drsuapi_DsNameInfo1
*array
;
923 } drsuapi_DsNameCtr1
;
925 typedef [switch_type(int32
)] union {
926 [case(1)] drsuapi_DsNameCtr1
*ctr1
;
929 WERROR drsuapi_DsCrackNames
(
930 [in] policy_handle
*bind_handle
,
932 [in,ref,switch_is(level
)] drsuapi_DsNameRequest
*req
,
933 [out,ref] int32
*level_out
,
934 [out,ref,switch_is(*level_out
)] drsuapi_DsNameCtr
*ctr
939 typedef [v1_enum] enum {
940 DRSUAPI_DS_SPN_OPERATION_ADD
= 0,
941 DRSUAPI_DS_SPN_OPERATION_REPLACE
= 1,
942 DRSUAPI_DS_SPN_OPERATION_DELETE
= 2
943 } drsuapi_DsSpnOperation
;
946 drsuapi_DsSpnOperation operation
;
948 [charset
(UTF16
),string] uint16
*object_dn
;
949 [range(0,10000)] uint32 count
;
950 [size_is(count
)] drsuapi_DsNameString
*spn_names
;
951 } drsuapi_DsWriteAccountSpnRequest1
;
953 typedef [switch_type(int32
)] union {
954 [case(1)] drsuapi_DsWriteAccountSpnRequest1 req1
;
955 } drsuapi_DsWriteAccountSpnRequest
;
959 } drsuapi_DsWriteAccountSpnResult1
;
961 typedef [switch_type(int32
)] union {
962 [case(1)] drsuapi_DsWriteAccountSpnResult1 res1
;
963 } drsuapi_DsWriteAccountSpnResult
;
965 WERROR drsuapi_DsWriteAccountSpn
(
966 [in] policy_handle
*bind_handle
,
968 [in,ref,switch_is(level
)] drsuapi_DsWriteAccountSpnRequest
*req
,
969 [out,ref] int32
*level_out
,
970 [out,ref,switch_is(*level_out
)] drsuapi_DsWriteAccountSpnResult
*res
976 [charset
(UTF16
),string] uint16
*server_dn
;
977 [charset
(UTF16
),string] uint16
*domain_dn
;
979 } drsuapi_DsRemoveDSServerRequest1
;
981 typedef [switch_type(int32
)] union {
982 [case(1)] drsuapi_DsRemoveDSServerRequest1 req1
;
983 } drsuapi_DsRemoveDSServerRequest
;
986 boolean32 last_dc_in_domain
;
987 } drsuapi_DsRemoveDSServerResult1
;
989 typedef [switch_type(int32
)] union {
990 [case(1)] drsuapi_DsRemoveDSServerResult1 res1
;
991 } drsuapi_DsRemoveDSServerResult
;
993 WERROR drsuapi_DsRemoveDSServer
(
994 [in] policy_handle
*bind_handle
,
996 [in,ref,switch_is(level
)] drsuapi_DsRemoveDSServerRequest
*req
,
997 [out,ref] int32
*level_out
,
998 [out,ref,switch_is(*level_out
)] drsuapi_DsRemoveDSServerResult
*res
1003 [todo
] WERROR DRSUAPI_REMOVE_DS_DOMAIN
();
1008 [charset
(UTF16
),string] uint16
*domain_name
; /* netbios or dns */
1009 int32 level
; /* specifies the switch level for the request */
1010 } drsuapi_DsGetDCInfoRequest1
;
1012 typedef [switch_type(int32
)] union {
1013 [case(1)] drsuapi_DsGetDCInfoRequest1 req1
;
1014 } drsuapi_DsGetDCInfoRequest
;
1017 [charset
(UTF16
),string] uint16
*netbios_name
;
1018 [charset
(UTF16
),string] uint16
*dns_name
;
1019 [charset
(UTF16
),string] uint16
*site_name
;
1020 [charset
(UTF16
),string] uint16
*computer_dn
;
1021 [charset
(UTF16
),string] uint16
*server_dn
;
1024 } drsuapi_DsGetDCInfo1
;
1027 [range(0,10000)] uint32 count
;
1028 [size_is(count
)] drsuapi_DsGetDCInfo1
*array
;
1029 } drsuapi_DsGetDCInfoCtr1
;
1032 [charset
(UTF16
),string] uint16
*netbios_name
;
1033 [charset
(UTF16
),string] uint16
*dns_name
;
1034 [charset
(UTF16
),string] uint16
*site_name
;
1035 [charset
(UTF16
),string] uint16
*site_dn
;
1036 [charset
(UTF16
),string] uint16
*computer_dn
;
1037 [charset
(UTF16
),string] uint16
*server_dn
;
1038 [charset
(UTF16
),string] uint16
*ntds_dn
;
1046 } drsuapi_DsGetDCInfo2
;
1049 [range(0,10000)] uint32 count
;
1050 [size_is(count
)] drsuapi_DsGetDCInfo2
*array
;
1051 } drsuapi_DsGetDCInfoCtr2
;
1054 [charset
(UTF16
),string] uint16
*netbios_name
;
1055 [charset
(UTF16
),string] uint16
*dns_name
;
1056 [charset
(UTF16
),string] uint16
*site_name
;
1057 [charset
(UTF16
),string] uint16
*site_dn
;
1058 [charset
(UTF16
),string] uint16
*computer_dn
;
1059 [charset
(UTF16
),string] uint16
*server_dn
;
1060 [charset
(UTF16
),string] uint16
*ntds_dn
;
1069 } drsuapi_DsGetDCInfo3
;
1072 [range(0,10000)] uint32 count
;
1073 [size_is(count
)] drsuapi_DsGetDCInfo3
*array
;
1074 } drsuapi_DsGetDCInfoCtr3
;
1077 * this represents an active connection to the
1078 * Directory System Agent (DSA)
1079 * this can be via LDAP or DRSUAPI
1082 [flag
(NDR_BIG_ENDIAN
)] ipv4address client_ip_address
;
1084 uint32 connection_time
; /* in seconds */
1089 * client_account can be the following:
1090 * "W2K3\Administrator"
1091 * "Administrator@W2K3"
1092 * "cn=Administrator,cn=Users,DC=w2k3,DC=vmnet1,DC=vm,DC=base"
1096 [charset
(UTF16
),string] uint16
*client_account
;
1097 } drsuapi_DsGetDCConnection01
;
1100 [range(0,10000)] uint32 count
;
1101 [size_is(count
)] drsuapi_DsGetDCConnection01
*array
;
1102 } drsuapi_DsGetDCConnectionCtr01
;
1104 typedef [v1_enum] enum {
1105 DRSUAPI_DC_INFO_CTR_1
= 1,
1106 DRSUAPI_DC_INFO_CTR_2
= 2,
1107 DRSUAPI_DC_INFO_CTR_3
= 3,
1108 DRSUAPI_DC_CONNECTION_CTR_01
= -1
1109 } drsuapi_DsGetDCInfoCtrLevels
;
1111 typedef [switch_type(int32
)] union {
1112 [case(DRSUAPI_DC_INFO_CTR_1
)] drsuapi_DsGetDCInfoCtr1 ctr1
;
1113 [case(DRSUAPI_DC_INFO_CTR_2
)] drsuapi_DsGetDCInfoCtr2 ctr2
;
1114 [case(DRSUAPI_DC_INFO_CTR_3
)] drsuapi_DsGetDCInfoCtr3 ctr3
;
1115 [case(DRSUAPI_DC_CONNECTION_CTR_01
)] drsuapi_DsGetDCConnectionCtr01 ctr01
;
1116 } drsuapi_DsGetDCInfoCtr
;
1118 WERROR drsuapi_DsGetDomainControllerInfo
(
1119 [in] policy_handle
*bind_handle
,
1121 [in,ref,switch_is(level
)] drsuapi_DsGetDCInfoRequest
*req
,
1122 [out,ref] int32
*level_out
,
1123 [out,ref,switch_is(*level_out
)] drsuapi_DsGetDCInfoCtr
*ctr
1128 typedef [public,noprint
] struct {
1129 drsuapi_DsReplicaObjectListItem
*next_object
;
1130 drsuapi_DsReplicaObject
object;
1131 } drsuapi_DsReplicaObjectListItem
;
1134 * The DsAddEntry() call which creates a nTDSDSA object,
1135 * also adds a servicePrincipalName in the following form
1136 * to the computer account of the new domain controller
1137 * referenced by the "serverReferenece" attribute.
1139 * E3514235-4B06-11D1-AB04-00C04FC2DCD2/<new-ntdsdsa-object-guid-as-string>/<domain-dns-name>
1141 * also note that the "serverReference" isn't added to the new object!
1143 const char *DRSUAPI_NTDSDSA_KRB5_SERVICE_GUID
= "E3514235-4B06-11D1-AB04-00C04FC2DCD2";
1146 * please note the the current idl
1147 * for DsAddEntry does only parse
1148 * what I saw between 2 w2k3 boxes
1149 * in my dssync experiments I got some other replies
1150 * so all I want to say is that this is very incomplete yet...
1154 drsuapi_DsReplicaObjectListItem first_object
;
1155 } drsuapi_DsAddEntryRequest2
;
1157 typedef [switch_type(int32
)] union {
1158 [case(2)] drsuapi_DsAddEntryRequest2 req2
;
1159 } drsuapi_DsAddEntryRequest
;
1166 } drsuapi_DsAddEntryErrorInfoX
;
1169 [range(0,10485760)] uint32 size
;
1170 [size_is(size
)] uint8
*data
;
1171 } drsuapi_DsAddEntryExtraErrorBuffer
;
1174 drsuapi_DsAddEntryErrorInfoX error
;
1175 drsuapi_DsAttributeId attid
;
1177 drsuapi_DsAddEntryExtraErrorBuffer buffer
;
1178 } drsuapi_DsAddEntryExtraError1
;
1180 typedef /*[noprint]*/ struct {
1181 drsuapi_DsAddEntryErrorListItem1
*next
;
1182 drsuapi_DsAddEntryExtraError1 error
;
1183 } drsuapi_DsAddEntryErrorListItem1
;
1186 drsuapi_DsReplicaObjectIdentifier
*id;
1188 drsuapi_DsAddEntryErrorListItem1 first
;
1189 } drsuapi_DsAddEntryErrorInfo1
;
1191 typedef [switch_type(uint32
)] union {
1192 [case(1)] drsuapi_DsAddEntryErrorInfo1 error1
;
1193 /* [case(2)] drsuapi_DsAddEntryErrorInfo2 error2;
1194 [case(3)] drsuapi_DsAddEntryErrorInfo3 error3;
1195 */ [case(4)] drsuapi_DsAddEntryErrorInfoX errorX
;
1196 [case(5)] drsuapi_DsAddEntryErrorInfoX errorX
;
1197 [case(6)] drsuapi_DsAddEntryErrorInfoX errorX
;
1198 [case(7)] drsuapi_DsAddEntryErrorInfoX errorX
;
1199 } drsuapi_DsAddEntryErrorInfo
;
1204 [switch_is(level
)] drsuapi_DsAddEntryErrorInfo
*info
;
1205 } drsuapi_DsAddEntryError1
;
1207 typedef [switch_type(uint32
)] union {
1208 [case(1)] drsuapi_DsAddEntryError1 info1
;
1209 } drsuapi_DsAddEntryError
;
1214 } drsuapi_DsReplicaObjectIdentifier2
;
1217 drsuapi_DsReplicaObjectIdentifier
*id;
1219 drsuapi_DsAddEntryErrorInfoX error
;
1220 [range(0,10000)] uint32 count
;
1221 [size_is(count
)] drsuapi_DsReplicaObjectIdentifier2
*objects
;
1222 } drsuapi_DsAddEntryCtr2
;
1225 drsuapi_DsReplicaObjectIdentifier
*id;
1227 [switch_is(level
)] drsuapi_DsAddEntryError
*error
;
1228 [range(0,10000)] uint32 count
;
1229 [size_is(count
)] drsuapi_DsReplicaObjectIdentifier2
*objects
;
1230 } drsuapi_DsAddEntryCtr3
;
1232 typedef [switch_type(int32
)] union {
1233 [case(2)] drsuapi_DsAddEntryCtr2 ctr2
;
1234 [case(3)] drsuapi_DsAddEntryCtr3 ctr3
;
1235 } drsuapi_DsAddEntryCtr
;
1237 [public] WERROR drsuapi_DsAddEntry
(
1238 [in] policy_handle
*bind_handle
,
1240 [in,ref,switch_is(level
)] drsuapi_DsAddEntryRequest
*req
,
1241 [out,ref] int32
*level_out
,
1242 [out,ref,switch_is(*level_out
)] drsuapi_DsAddEntryCtr
*ctr
1247 [todo
] WERROR DRSUAPI_EXECUTE_KCC
();
1251 typedef [v1_enum] enum {
1252 DRSUAPI_DS_REPLICA_GET_INFO
= 1,
1253 DRSUAPI_DS_REPLICA_GET_INFO2
= 2
1254 } drsuapi_DsReplicaGetInfoLevel
;
1256 typedef [v1_enum] enum {
1257 DRSUAPI_DS_REPLICA_INFO_NEIGHBORS
= 0,
1258 DRSUAPI_DS_REPLICA_INFO_CURSORS
= 1,
1259 DRSUAPI_DS_REPLICA_INFO_OBJ_METADATA
= 2,
1260 DRSUAPI_DS_REPLICA_INFO_KCC_DSA_CONNECT_FAILURES
= 3,
1261 DRSUAPI_DS_REPLICA_INFO_KCC_DSA_LINK_FAILURES
= 4,
1262 DRSUAPI_DS_REPLICA_INFO_PENDING_OPS
= 5,
1263 DRSUAPI_DS_REPLICA_INFO_ATTRIBUTE_VALUE_METADATA
= 6,
1264 DRSUAPI_DS_REPLICA_INFO_CURSORS2
= 7,
1265 DRSUAPI_DS_REPLICA_INFO_CURSORS3
= 8,
1266 DRSUAPI_DS_REPLICA_INFO_OBJ_METADATA2
= 9,
1267 DRSUAPI_DS_REPLICA_INFO_ATTRIBUTE_VALUE_METADATA2
= 10,
1268 DRSUAPI_DS_REPLICA_INFO_NEIGHBORS02
= -2,
1269 DRSUAPI_DS_REPLICA_INFO_CONNECTIONS04
= -4,
1270 DRSUAPI_DS_REPLICA_INFO_CURSORS05
= -5,
1271 DRSUAPI_DS_REPLICA_INFO_06
= -6
1272 } drsuapi_DsReplicaInfoType
;
1275 drsuapi_DsReplicaInfoType info_type
;
1276 [charset
(UTF16
),string] uint16
*object_dn
;
1278 } drsuapi_DsReplicaGetInfoRequest1
;
1281 drsuapi_DsReplicaInfoType info_type
;
1282 [charset
(UTF16
),string] uint16
*object_dn
;
1285 [charset
(UTF16
),string] uint16
*string1
;
1286 [charset
(UTF16
),string] uint16
*string2
;
1288 } drsuapi_DsReplicaGetInfoRequest2
;
1290 typedef [switch_type(drsuapi_DsReplicaGetInfoLevel
)] union {
1291 [case(DRSUAPI_DS_REPLICA_GET_INFO
)] drsuapi_DsReplicaGetInfoRequest1 req1
;
1292 [case(DRSUAPI_DS_REPLICA_GET_INFO2
)] drsuapi_DsReplicaGetInfoRequest2 req2
;
1293 } drsuapi_DsReplicaGetInfoRequest
;
1296 [charset
(UTF16
),string] uint16
*naming_context_dn
;
1297 [charset
(UTF16
),string] uint16
*source_dsa_obj_dn
;
1298 [charset
(UTF16
),string] uint16
*source_dsa_address
;
1299 [charset
(UTF16
),string] uint16
*transport_obj_dn
;
1300 drsuapi_DsReplicaNeighbourFlags replica_flags
;
1302 GUID naming_context_obj_guid
;
1303 GUID source_dsa_obj_guid
;
1304 GUID source_dsa_invocation_id
;
1305 GUID transport_obj_guid
;
1306 hyper tmp_highest_usn
;
1308 NTTIME last_success
;
1309 NTTIME last_attempt
;
1310 WERROR result_last_attempt
;
1311 uint32 consecutive_sync_failures
;
1312 } drsuapi_DsReplicaNeighbour
;
1317 [size_is(count
)] drsuapi_DsReplicaNeighbour array
[];
1318 } drsuapi_DsReplicaNeighbourCtr
;
1323 [size_is(count
)] drsuapi_DsReplicaCursor array
[];
1324 } drsuapi_DsReplicaCursorCtr
;
1327 [charset
(UTF16
),string] uint16
*attribute_name
;
1329 NTTIME originating_change_time
;
1330 GUID originating_invocation_id
;
1331 hyper originating_usn
;
1333 } drsuapi_DsReplicaObjMetaData
;
1338 [size_is(count
)] drsuapi_DsReplicaObjMetaData array
[];
1339 } drsuapi_DsReplicaObjMetaDataCtr
;
1342 [charset
(UTF16
),string] uint16
*dsa_obj_dn
;
1344 NTTIME first_failure
;
1345 uint32 num_failures
;
1347 } drsuapi_DsReplicaKccDsaFailure
;
1352 [size_is(count
)] drsuapi_DsReplicaKccDsaFailure array
[];
1353 } drsuapi_DsReplicaKccDsaFailuresCtr
;
1356 DRSUAPI_DS_REPLICA_OP_TYPE_SYNC
= 0,
1357 DRSUAPI_DS_REPLICA_OP_TYPE_ADD
= 1,
1358 DRSUAPI_DS_REPLICA_OP_TYPE_DELETE
= 2,
1359 DRSUAPI_DS_REPLICA_OP_TYPE_MODIFY
= 3,
1360 DRSUAPI_DS_REPLICA_OP_TYPE_UPDATE_REFS
= 4
1361 } drsuapi_DsReplicaOpType
;
1363 typedef [switch_type(drsuapi_DsReplicaOpType
)] union {
1364 [case(DRSUAPI_DS_REPLICA_OP_TYPE_SYNC
)] drsuapi_DsReplicaSyncOptions sync
;
1365 [case(DRSUAPI_DS_REPLICA_OP_TYPE_ADD
)] drsuapi_DsReplicaAddOptions add
;
1366 [case(DRSUAPI_DS_REPLICA_OP_TYPE_DELETE
)] drsuapi_DsReplicaDeleteOptions op_delete
;
1367 [case(DRSUAPI_DS_REPLICA_OP_TYPE_MODIFY
)] drsuapi_DsReplicaModifyOptions modify
;
1368 [case(DRSUAPI_DS_REPLICA_OP_TYPE_UPDATE_REFS
)] drsuapi_DsReplicaUpdateRefsOptions update_refs
;
1369 [default] uint32 unknown
;
1370 } drsuapi_DsRplicaOpOptions
;
1373 NTTIME operation_start
;
1374 uint32 serial_num
; /* unique till reboot */
1376 drsuapi_DsReplicaOpType operation_type
;
1377 [switch_is(operation_type
)] drsuapi_DsRplicaOpOptions options
;
1378 [charset
(UTF16
),string] uint16
*nc_dn
;
1379 [charset
(UTF16
),string] uint16
*remote_dsa_obj_dn
;
1380 [charset
(UTF16
),string] uint16
*remote_dsa_address
;
1382 GUID remote_dsa_obj_guid
;
1383 } drsuapi_DsReplicaOp
;
1388 [size_is(count
)] drsuapi_DsReplicaOp array
[];
1389 } drsuapi_DsReplicaOpCtr
;
1392 [charset
(UTF16
),string] uint16
*attribute_name
;
1393 [charset
(UTF16
),string] uint16
*object_dn
;
1394 [value
(ndr_size_DATA_BLOB
(0,binary
,0))] uint32 __ndr_size_binary
;
1399 NTTIME originating_change_time
;
1400 GUID originating_invocation_id
;
1401 hyper originating_usn
;
1403 } drsuapi_DsReplicaAttrValMetaData
;
1407 int32 enumeration_context
;
1408 [size_is(count
)] drsuapi_DsReplicaAttrValMetaData array
[];
1409 } drsuapi_DsReplicaAttrValMetaDataCtr
;
1413 int32 enumeration_context
;
1414 [size_is(count
)] drsuapi_DsReplicaCursor2 array
[];
1415 } drsuapi_DsReplicaCursor2Ctr
;
1418 GUID source_dsa_invocation_id
;
1420 NTTIME last_sync_success
;
1421 [charset
(UTF16
),string] uint16
*source_dsa_obj_dn
;
1422 } drsuapi_DsReplicaCursor3
;
1426 int32 enumeration_context
;
1427 [size_is(count
)] drsuapi_DsReplicaCursor3 array
[];
1428 } drsuapi_DsReplicaCursor3Ctr
;
1431 [charset
(UTF16
),string] uint16
*attribute_name
;
1433 NTTIME originating_change_time
;
1434 GUID originating_invocation_id
;
1435 hyper originating_usn
;
1437 [charset
(UTF16
),string] uint16
*originating_dsa_dn
;
1438 } drsuapi_DsReplicaObjMetaData2
;
1442 int32 enumeration_context
;
1443 [size_is(count
)] drsuapi_DsReplicaObjMetaData2 array
[];
1444 } drsuapi_DsReplicaObjMetaData2Ctr
;
1447 [charset
(UTF16
),string] uint16
*attribute_name
;
1448 [charset
(UTF16
),string] uint16
*object_dn
;
1449 [value
(ndr_size_DATA_BLOB
(0,binary
,0))] uint32 __ndr_size_binary
;
1454 NTTIME originating_change_time
;
1455 GUID originating_invocation_id
;
1456 hyper originating_usn
;
1458 [charset
(UTF16
),string] uint16
*originating_dsa_dn
;
1459 } drsuapi_DsReplicaAttrValMetaData2
;
1463 int32 enumeration_context
;
1464 [size_is(count
)] drsuapi_DsReplicaAttrValMetaData2 array
[];
1465 } drsuapi_DsReplicaAttrValMetaData2Ctr
;
1468 hyper u1
; /* session number? */
1472 NTTIME_1sec bind_time
;
1473 [flag
(NDR_BIG_ENDIAN
)] ipv4address client_ip_address
;
1474 uint32 u5
; /* this is the same value the client used as pid in the DsBindInfoX struct */
1475 } drsuapi_DsReplicaConnection04
;
1478 [range(0,10000)] uint32 count
;
1480 [size_is(count
)] drsuapi_DsReplicaConnection04 array
[];
1481 } drsuapi_DsReplicaConnection04Ctr
;
1484 [charset
(UTF16
),string] uint16
*str1
;
1492 } drsuapi_DsReplica06
;
1495 [range(0,256)] uint32 count
;
1497 [size_is(count
)] drsuapi_DsReplica06 array
[];
1498 } drsuapi_DsReplica06Ctr
;
1500 typedef [switch_type(drsuapi_DsReplicaInfoType
)] union {
1501 [case(DRSUAPI_DS_REPLICA_INFO_NEIGHBORS
)] drsuapi_DsReplicaNeighbourCtr
*neighbours
;
1502 [case(DRSUAPI_DS_REPLICA_INFO_CURSORS
)] drsuapi_DsReplicaCursorCtr
*cursors
;
1503 [case(DRSUAPI_DS_REPLICA_INFO_OBJ_METADATA
)] drsuapi_DsReplicaObjMetaDataCtr
*objmetadata
;
1504 [case(DRSUAPI_DS_REPLICA_INFO_KCC_DSA_CONNECT_FAILURES
)] drsuapi_DsReplicaKccDsaFailuresCtr
*connectfailures
;
1505 [case(DRSUAPI_DS_REPLICA_INFO_KCC_DSA_LINK_FAILURES
)] drsuapi_DsReplicaKccDsaFailuresCtr
*linkfailures
;
1506 [case(DRSUAPI_DS_REPLICA_INFO_PENDING_OPS
)] drsuapi_DsReplicaOpCtr
*pendingops
;
1507 [case(DRSUAPI_DS_REPLICA_INFO_ATTRIBUTE_VALUE_METADATA
)] drsuapi_DsReplicaAttrValMetaDataCtr
*attrvalmetadata
;
1508 [case(DRSUAPI_DS_REPLICA_INFO_CURSORS2
)] drsuapi_DsReplicaCursor2Ctr
*cursors2
;
1509 [case(DRSUAPI_DS_REPLICA_INFO_CURSORS3
)] drsuapi_DsReplicaCursor3Ctr
*cursors3
;
1510 [case(DRSUAPI_DS_REPLICA_INFO_OBJ_METADATA2
)] drsuapi_DsReplicaObjMetaData2Ctr
*objmetadata2
;
1511 [case(DRSUAPI_DS_REPLICA_INFO_ATTRIBUTE_VALUE_METADATA2
)] drsuapi_DsReplicaAttrValMetaData2Ctr
*attrvalmetadata2
;
1512 [case(DRSUAPI_DS_REPLICA_INFO_NEIGHBORS02
)] drsuapi_DsReplicaNeighbourCtr
*neighbours02
;
1513 [case(DRSUAPI_DS_REPLICA_INFO_CONNECTIONS04
)] drsuapi_DsReplicaConnection04Ctr
*connections04
;
1514 [case(DRSUAPI_DS_REPLICA_INFO_CURSORS05
)] drsuapi_DsReplicaCursorCtrEx
*cursors05
;
1515 [case(DRSUAPI_DS_REPLICA_INFO_06
)] drsuapi_DsReplica06Ctr
*i06
;
1516 } drsuapi_DsReplicaInfo
;
1518 WERROR drsuapi_DsReplicaGetInfo
(
1519 [in] policy_handle
*bind_handle
,
1520 [in] drsuapi_DsReplicaGetInfoLevel level
,
1521 [in,ref,switch_is(level
)] drsuapi_DsReplicaGetInfoRequest
*req
,
1522 [out,ref] drsuapi_DsReplicaInfoType
*info_type
,
1523 [out,ref,switch_is(*info_type
)] drsuapi_DsReplicaInfo
*info
1528 [todo
] WERROR DRSUAPI_ADD_SID_HISTORY
();
1534 [range(0,10000)] uint32 num_entries
;
1535 [size_is(num_entries
)] drsuapi_DsGetMembershipsCtr1
**ctrl_array
;
1536 } drsuapi_DsGetMemberships2Ctr1
;
1538 typedef [switch_type(int32
)] union {
1539 [case(1)] drsuapi_DsGetMembershipsCtr1 ctr1
;
1540 } drsuapi_DsGetMemberships2Ctr
;
1543 [range(1,10000)] uint32 num_req
;
1544 [size_is(num_req
)] drsuapi_DsGetMembershipsRequest1
**req_array
;
1545 } drsuapi_DsGetMemberships2Request1
;
1547 typedef [switch_type(int32
)] union {
1548 [case(1)] drsuapi_DsGetMemberships2Request1 req1
;
1549 } drsuapi_DsGetMemberships2Request
;
1551 WERROR drsuapi_DsGetMemberships2
(
1552 [in] policy_handle
*bind_handle
,
1554 [in,ref] [switch_is(level
)] drsuapi_DsGetMemberships2Request
*req
,
1555 [out,ref] int32
*level_out
,
1556 [out,ref] [switch_is(*level_out
)] drsuapi_DsGetMemberships2Ctr
*ctr
1561 [todo
] WERROR DRSUAPI_REPLICA_VERIFY_OBJECTS
();
1565 [todo
] WERROR DRSUAPI_GET_OBJECT_EXISTENCE
();
1572 } drsuapi_DsSiteCostInfo
;
1575 [range(0,10000)] uint32 num_info
;
1576 [size_is(num_info
)] drsuapi_DsSiteCostInfo
*info
;
1578 } drsuapi_QuerySitesByCostCtr1
;
1580 typedef [switch_type(int32
)] union {
1581 [case(1)] drsuapi_QuerySitesByCostCtr1 ctr1
;
1582 } drsuapi_QuerySitesByCostCtr
;
1585 [charset
(UTF16
),string] uint16
*site_from
;
1586 [range(1,10000)] uint32 num_req
;
1587 [size_is(num_req
)] [charset
(UTF16
),string] uint16
**site_to
;
1589 } drsuapi_QuerySitesByCostRequest1
;
1591 typedef [switch_type(int32
)] union {
1592 [case(1)] drsuapi_QuerySitesByCostRequest1 req1
;
1593 } drsuapi_QuerySitesByCostRequest
;
1595 WERROR drsuapi_QuerySitesByCost
(
1596 [in] policy_handle
*bind_handle
,
1598 [in,ref] [switch_is(level
)] drsuapi_QuerySitesByCostRequest
*req
,
1599 [out,ref] int32
*level_out
,
1600 [out,ref] [switch_is(*level_out
)] drsuapi_QuerySitesByCostCtr
*ctr