1 /* header auto-generated by pidl */
5 #include "libcli/util/ntstatus.h"
7 #include "librpc/gen_ndr/drsuapi.h"
8 #include "librpc/gen_ndr/misc.h"
9 #include "librpc/gen_ndr/samr.h"
10 #include "librpc/gen_ndr/lsa.h"
11 #ifndef _HEADER_drsblobs
12 #define _HEADER_drsblobs
14 #define SUPPLEMENTAL_CREDENTIALS_PREFIX ( " " )
15 struct replPropertyMetaData1
{
16 enum drsuapi_DsAttributeId attid
;
18 NTTIME originating_change_time
;
19 struct GUID originating_invocation_id
;
20 uint64_t originating_usn
;
24 struct replPropertyMetaDataCtr1
{
27 struct replPropertyMetaData1
*array
;
30 union replPropertyMetaDataCtr
{
31 struct replPropertyMetaDataCtr1 ctr1
;/* [case] */
32 }/* [nodiscriminant] */;
34 struct replPropertyMetaDataBlob
{
37 union replPropertyMetaDataCtr ctr
;/* [switch_is(version)] */
40 struct replUpToDateVectorCtr1
{
43 struct drsuapi_DsReplicaCursor
*cursors
;
46 struct replUpToDateVectorCtr2
{
49 struct drsuapi_DsReplicaCursor2
*cursors
;
52 union replUpToDateVectorCtr
{
53 struct replUpToDateVectorCtr1 ctr1
;/* [case] */
54 struct replUpToDateVectorCtr2 ctr2
;/* [case(2)] */
55 }/* [nodiscriminant] */;
57 struct replUpToDateVectorBlob
{
60 union replUpToDateVectorCtr ctr
;/* [switch_is(version)] */
63 struct repsFromTo1OtherInfo
{
64 uint32_t __dns_name_size
;/* [value(strlen(dns_name)+1)] */
65 const char *dns_name
;/* [charset(DOS)] */
66 }/* [gensize,public] */;
69 uint32_t blobsize
;/* [value(ndr_size_repsFromTo1(this,ndr->iconv_convenience,ndr->flags)+8)] */
70 uint32_t consecutive_sync_failures
;
73 WERROR result_last_attempt
;
74 struct repsFromTo1OtherInfo
*other_info
;/* [relative] */
75 uint32_t other_info_length
;/* [value(ndr_size_repsFromTo1OtherInfo(other_info,ndr->iconv_convenience,ndr->flags))] */
76 uint32_t replica_flags
;
79 struct drsuapi_DsReplicaHighWaterMark highwatermark
;
80 struct GUID source_dsa_obj_guid
;
81 struct GUID source_dsa_invocation_id
;
82 struct GUID transport_guid
;
83 }/* [gensize,public,flag(LIBNDR_PRINT_ARRAY_HEX)] */;
85 struct repsFromTo2OtherInfo
{
86 uint32_t __ndr_size
;/* [value(ndr_size_repsFromTo2OtherInfo(this,ndr->iconv_convenience,ndr->flags))] */
87 const char * dns_name1
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
89 const char * dns_name2
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
91 }/* [relative_base,gensize,public] */;
94 uint32_t blobsize
;/* [value(ndr_size_repsFromTo2(this,ndr->iconv_convenience,ndr->flags)+8)] */
95 uint32_t consecutive_sync_failures
;
98 WERROR result_last_attempt
;
99 struct repsFromTo2OtherInfo
*other_info
;/* [relative] */
100 uint32_t other_info_length
;/* [value(ndr_size_repsFromTo2OtherInfo(other_info,ndr->iconv_convenience,ndr->flags))] */
101 uint32_t replica_flags
;
102 uint8_t schedule
[84];
104 struct drsuapi_DsReplicaHighWaterMark highwatermark
;
105 struct GUID source_dsa_obj_guid
;
106 struct GUID source_dsa_invocation_id
;
107 struct GUID transport_guid
;
109 }/* [gensize,public,flag(LIBNDR_PRINT_ARRAY_HEX)] */;
112 struct repsFromTo1 ctr1
;/* [case] */
113 struct repsFromTo2 ctr2
;/* [case(2)] */
114 }/* [nodiscriminant] */;
116 struct repsFromToBlob
{
119 union repsFromTo ctr
;/* [switch_is(version)] */
122 struct partialAttributeSetCtr1
{
124 enum drsuapi_DsAttributeId
*array
;
127 union partialAttributeSetCtr
{
128 struct partialAttributeSetCtr1 ctr1
;/* [case] */
129 }/* [nodiscriminant] */;
131 struct partialAttributeSetBlob
{
134 union partialAttributeSetCtr ctr
;/* [switch_is(version)] */
137 enum prefixMapVersion
138 #ifndef USE_UINT_ENUMS
140 PREFIX_MAP_VERSION_DSDB
=(int)(0x44534442)
143 { __donnot_use_enum_prefixMapVersion
=0x7FFFFFFF}
144 #define PREFIX_MAP_VERSION_DSDB ( 0x44534442 )
149 struct drsuapi_DsReplicaOIDMapping_Ctr dsdb
;/* [case(PREFIX_MAP_VERSION_DSDB)] */
150 }/* [nodiscriminant] */;
152 struct prefixMapBlob
{
153 enum prefixMapVersion version
;
155 union prefixMapCtr ctr
;/* [switch_is(version)] */
158 union ldapControlDirSyncExtra
{
159 struct replUpToDateVectorBlob uptodateness_vector
;/* [default] */
160 }/* [gensize,nodiscriminant] */;
162 struct ldapControlDirSyncBlob
{
163 uint32_t u1
;/* [value(3)] */
167 uint32_t extra_length
;/* [value(ndr_size_ldapControlDirSyncExtra(&extra,extra.uptodateness_vector.version,ndr->iconv_convenience,0))] */
168 struct drsuapi_DsReplicaHighWaterMark highwatermark
;
170 union ldapControlDirSyncExtra extra
;/* [switch_is(extra_length)] */
173 struct ldapControlDirSyncCookie
{
174 const char *msds
;/* [value("MSDS"),charset(DOS)] */
175 struct ldapControlDirSyncBlob blob
;/* [subcontext(0)] */
176 }/* [relative_base,public] */;
178 struct supplementalCredentialsPackage
{
179 uint16_t name_len
;/* [value(2*strlen_m(name))] */
180 uint16_t data_len
;/* [value(strlen(data))] */
182 const char *name
;/* [charset(UTF16)] */
183 const char *data
;/* [charset(DOS)] */
186 enum supplementalCredentialsSignature
187 #ifndef USE_UINT_ENUMS
189 SUPPLEMENTAL_CREDENTIALS_SIGNATURE
=(int)(0x0050)
192 { __donnot_use_enum_supplementalCredentialsSignature
=0x7FFFFFFF}
193 #define SUPPLEMENTAL_CREDENTIALS_SIGNATURE ( 0x0050 )
197 struct supplementalCredentialsSubBlob
{
198 const char *prefix
;/* [value(SUPPLEMENTAL_CREDENTIALS_PREFIX),charset(UTF16)] */
199 enum supplementalCredentialsSignature signature
;/* [value(SUPPLEMENTAL_CREDENTIALS_SIGNATURE)] */
200 uint16_t num_packages
;
201 struct supplementalCredentialsPackage
*packages
;
204 struct supplementalCredentialsBlob
{
205 uint32_t unknown1
;/* [value(0)] */
206 uint32_t __ndr_size
;/* [value(ndr_size_supplementalCredentialsSubBlob(&sub,ndr->iconv_convenience,ndr->flags))] */
207 uint32_t unknown2
;/* [value(0)] */
208 struct supplementalCredentialsSubBlob sub
;/* [subcontext_size(__ndr_size),subcontext(0)] */
209 uint8_t unknown3
;/* [value(0)] */
212 struct package_PackagesBlob
{
213 const char ** names
;/* [flag(LIBNDR_FLAG_STR_NOTERM|LIBNDR_FLAG_REMAINING)] */
216 struct package_PrimaryKerberosString
{
217 uint16_t length
;/* [value(2*strlen_m(string))] */
218 uint16_t size
;/* [value(2*strlen_m(string))] */
219 const char * string
;/* [relative,subcontext_size(size),subcontext(0),flag(LIBNDR_FLAG_STR_NOTERM|LIBNDR_FLAG_REMAINING)] */
222 struct package_PrimaryKerberosKey3
{
223 uint16_t reserved1
;/* [value(0)] */
224 uint16_t reserved2
;/* [value(0)] */
225 uint32_t reserved3
;/* [value(0)] */
227 uint32_t value_len
;/* [value((value?value->length:0))] */
228 DATA_BLOB
*value
;/* [relative,subcontext_size(value_len),subcontext(0),flag(LIBNDR_FLAG_REMAINING)] */
231 struct package_PrimaryKerberosCtr3
{
233 uint16_t num_old_keys
;
234 struct package_PrimaryKerberosString salt
;
235 struct package_PrimaryKerberosKey3
*keys
;
236 struct package_PrimaryKerberosKey3
*old_keys
;
237 uint32_t padding1
;/* [value(0)] */
238 uint32_t padding2
;/* [value(0)] */
239 uint32_t padding3
;/* [value(0)] */
240 uint32_t padding4
;/* [value(0)] */
241 uint32_t padding5
;/* [value(0)] */
244 struct package_PrimaryKerberosKey4
{
245 uint16_t reserved1
;/* [value(0)] */
246 uint16_t reserved2
;/* [value(0)] */
247 uint32_t reserved3
;/* [value(0)] */
248 uint32_t iteration_count
;
250 uint32_t value_len
;/* [value((value?value->length:0))] */
251 DATA_BLOB
*value
;/* [relative,subcontext_size(value_len),subcontext(0),flag(LIBNDR_FLAG_REMAINING)] */
254 struct package_PrimaryKerberosCtr4
{
256 uint16_t num_service_keys
;/* [value(0)] */
257 uint16_t num_old_keys
;
258 uint16_t num_older_keys
;
259 struct package_PrimaryKerberosString salt
;
260 uint32_t default_iteration_count
;
261 struct package_PrimaryKerberosKey4
*keys
;
262 struct package_PrimaryKerberosKey4
*service_keys
;
263 struct package_PrimaryKerberosKey4
*old_keys
;
264 struct package_PrimaryKerberosKey4
*older_keys
;
267 union package_PrimaryKerberosCtr
{
268 struct package_PrimaryKerberosCtr3 ctr3
;/* [case(3)] */
269 struct package_PrimaryKerberosCtr4 ctr4
;/* [case(4)] */
270 }/* [nodiscriminant] */;
272 struct package_PrimaryKerberosBlob
{
274 uint16_t flags
;/* [value(0)] */
275 union package_PrimaryKerberosCtr ctr
;/* [switch_is(version)] */
278 struct package_PrimaryCLEARTEXTBlob
{
279 DATA_BLOB cleartext
;/* [flag(LIBNDR_FLAG_REMAINING)] */
282 struct package_PrimaryWDigestHash
{
284 }/* [flag(LIBNDR_PRINT_ARRAY_HEX)] */;
286 struct package_PrimaryWDigestBlob
{
287 uint16_t unknown1
;/* [value(0x31)] */
288 uint8_t unknown2
;/* [value(0x01)] */
290 uint32_t unknown3
;/* [value(0)] */
291 uint64_t uuknown4
;/* [value(0)] */
292 struct package_PrimaryWDigestHash
*hashes
;
295 struct AuthInfoNone
{
296 uint32_t size
;/* [value(0)] */
299 struct AuthInfoNT4Owf
{
300 uint32_t size
;/* [value(16)] */
301 struct samr_Password password
;
304 struct AuthInfoClear
{
309 struct AuthInfoVersion
{
310 uint32_t size
;/* [value(4)] */
315 struct AuthInfoNone none
;/* [case(TRUST_AUTH_TYPE_NONE)] */
316 struct AuthInfoNT4Owf nt4owf
;/* [case(TRUST_AUTH_TYPE_NT4OWF)] */
317 struct AuthInfoClear clear
;/* [case(TRUST_AUTH_TYPE_CLEAR)] */
318 struct AuthInfoVersion version
;/* [case(TRUST_AUTH_TYPE_VERSION)] */
319 }/* [nodiscriminant] */;
321 struct AuthenticationInformation
{
322 NTTIME LastUpdateTime
;
323 enum lsa_TrustAuthType AuthType
;
324 union AuthInfo AuthInfo
;/* [switch_is(AuthType)] */
325 DATA_BLOB _pad
;/* [flag(LIBNDR_FLAG_ALIGN4)] */
328 struct AuthenticationInformationArray
{
329 struct AuthenticationInformation
*array
;/* [size_is] */
330 }/* [noprint,nopush,nopull] */;
332 struct trustAuthInOutBlob
{
334 struct AuthenticationInformationArray
*current
;/* [relative] */
335 struct AuthenticationInformationArray
*previous
;/* [relative] */
336 }/* [noprint,gensize,nopull,public,nopush] */;
338 struct trustCurrentPasswords
{
340 struct AuthenticationInformation
**current
;/* [relative] */
341 }/* [gensize,public] */;
343 struct trustDomainPasswords
{
344 uint8_t confounder
[512];
345 struct trustCurrentPasswords outgoing
;/* [subcontext_size(outgoing_size),subcontext(0)] */
346 struct trustCurrentPasswords incoming
;/* [subcontext_size(incoming_size),subcontext(0)] */
347 uint32_t outgoing_size
;/* [value(ndr_size_trustCurrentPasswords(&outgoing,ndr->iconv_convenience,ndr->flags))] */
348 uint32_t incoming_size
;/* [value(ndr_size_trustCurrentPasswords(&incoming,ndr->iconv_convenience,ndr->flags))] */
349 }/* [public,nopull] */;
351 struct DsCompressedChunk
{
356 struct ExtendedErrorAString
{
358 const char *string
;/* [unique,charset(DOS),size_is(__size)] */
361 struct ExtendedErrorUString
{
363 const char *string
;/* [unique,charset(UTF16),size_is(__size)] */
366 struct ExtendedErrorBlob
{
368 uint8_t *data
;/* [unique,size_is(length)] */
371 enum ExtendedErrorComputerNamePresent
372 #ifndef USE_UINT_ENUMS
374 EXTENDED_ERROR_COMPUTER_NAME_PRESENT
=(int)(1),
375 EXTENDED_ERROR_COMPUTER_NAME_NOT_PRESENT
=(int)(2)
378 { __donnot_use_enum_ExtendedErrorComputerNamePresent
=0x7FFFFFFF}
379 #define EXTENDED_ERROR_COMPUTER_NAME_PRESENT ( 1 )
380 #define EXTENDED_ERROR_COMPUTER_NAME_NOT_PRESENT ( 2 )
384 union ExtendedErrorComputerNameU
{
385 struct ExtendedErrorUString name
;/* [case(EXTENDED_ERROR_COMPUTER_NAME_PRESENT)] */
386 }/* [switch_type(ExtendedErrorComputerNamePresent)] */;
388 struct ExtendedErrorComputerName
{
389 enum ExtendedErrorComputerNamePresent present
;
390 union ExtendedErrorComputerNameU n
;/* [switch_is(present)] */
393 enum ExtendedErrorParamType
394 #ifndef USE_UINT_ENUMS
396 EXTENDED_ERROR_PARAM_TYPE_ASCII_STRING
=(int)(1),
397 EXTENDED_ERROR_PARAM_TYPE_UNICODE_STRING
=(int)(2),
398 EXTENDED_ERROR_PARAM_TYPE_UINT32
=(int)(3),
399 EXTENDED_ERROR_PARAM_TYPE_UINT16
=(int)(4),
400 EXTENDED_ERROR_PARAM_TYPE_UINT64
=(int)(5),
401 EXTENDED_ERROR_PARAM_TYPE_NONE
=(int)(6),
402 EXTENDED_ERROR_PARAM_TYPE_BLOB
=(int)(7)
405 { __donnot_use_enum_ExtendedErrorParamType
=0x7FFFFFFF}
406 #define EXTENDED_ERROR_PARAM_TYPE_ASCII_STRING ( 1 )
407 #define EXTENDED_ERROR_PARAM_TYPE_UNICODE_STRING ( 2 )
408 #define EXTENDED_ERROR_PARAM_TYPE_UINT32 ( 3 )
409 #define EXTENDED_ERROR_PARAM_TYPE_UINT16 ( 4 )
410 #define EXTENDED_ERROR_PARAM_TYPE_UINT64 ( 5 )
411 #define EXTENDED_ERROR_PARAM_TYPE_NONE ( 6 )
412 #define EXTENDED_ERROR_PARAM_TYPE_BLOB ( 7 )
416 union ExtendedErrorParamU
{
417 struct ExtendedErrorAString a_string
;/* [case(EXTENDED_ERROR_PARAM_TYPE_ASCII_STRING)] */
418 struct ExtendedErrorUString u_string
;/* [case(EXTENDED_ERROR_PARAM_TYPE_UNICODE_STRING)] */
419 uint32_t uint32
;/* [case(EXTENDED_ERROR_PARAM_TYPE_UINT32)] */
420 uint16_t uint16
;/* [case(EXTENDED_ERROR_PARAM_TYPE_UINT16)] */
421 uint64_t uint64
;/* [case(EXTENDED_ERROR_PARAM_TYPE_UINT64)] */
422 struct ExtendedErrorBlob blob
;/* [case(EXTENDED_ERROR_PARAM_TYPE_BLOB)] */
423 }/* [switch_type(ExtendedErrorParamType)] */;
425 struct ExtendedErrorParam
{
426 enum ExtendedErrorParamType type
;
427 union ExtendedErrorParamU p
;/* [switch_is(type)] */
430 struct ExtendedErrorInfo
{
431 struct ExtendedErrorInfo
*next
;/* [unique] */
432 struct ExtendedErrorComputerName computer_name
;
435 uint32_t generating_component
;
437 uint16_t detection_location
;
440 struct ExtendedErrorParam
*params
;/* [size_is(num_params)] */
443 struct ExtendedErrorInfoPtr
{
444 struct ExtendedErrorInfo
*info
;/* [unique] */
448 struct decode_replPropertyMetaData
{
450 struct replPropertyMetaDataBlob blob
;
456 struct decode_replUpToDateVector
{
458 struct replUpToDateVectorBlob blob
;
464 struct decode_repsFromTo
{
466 struct repsFromToBlob blob
;
472 struct decode_partialAttributeSet
{
474 struct partialAttributeSetBlob blob
;
480 struct decode_prefixMap
{
482 struct prefixMapBlob blob
;
488 struct decode_ldapControlDirSync
{
490 struct ldapControlDirSyncCookie cookie
;
496 struct decode_supplementalCredentials
{
498 struct supplementalCredentialsBlob blob
;
504 struct decode_Packages
{
506 struct package_PackagesBlob blob
;
512 struct decode_PrimaryKerberos
{
514 struct package_PrimaryKerberosBlob blob
;
520 struct decode_PrimaryCLEARTEXT
{
522 struct package_PrimaryCLEARTEXTBlob blob
;
528 struct decode_PrimaryWDigest
{
530 struct package_PrimaryWDigestBlob blob
;
536 struct decode_trustAuthInOut
{
538 struct trustAuthInOutBlob blob
;
544 struct decode_trustDomainPasswords
{
546 struct trustDomainPasswords blob
;
552 struct decode_ExtendedErrorInfo
{
554 struct ExtendedErrorInfoPtr ptr
;/* [subcontext(0xFFFFFC01)] */
559 #endif /* _HEADER_drsblobs */