s3:docs: document the --request-timeout option of net
[Samba/gbeck.git] / librpc / gen_ndr / krb5pac.h
blob03b23bdaaeb99be287949dc8206bb21f5912990a
1 /* header auto-generated by pidl */
3 #include <stdint.h>
5 #include "libcli/util/ntstatus.h"
7 #include "librpc/gen_ndr/security.h"
8 #include "librpc/gen_ndr/netlogon.h"
9 #include "librpc/gen_ndr/samr.h"
10 #ifndef _HEADER_krb5pac
11 #define _HEADER_krb5pac
13 #define NETLOGON_GENERIC_KRB5_PAC_VALIDATE ( 3 )
14 struct PAC_LOGON_NAME {
15 NTTIME logon_time;
16 uint16_t size;/* [value(2*strlen_m(account_name))] */
17 const char *account_name;/* [charset(UTF16)] */
20 struct PAC_SIGNATURE_DATA {
21 uint32_t type;
22 DATA_BLOB signature;/* [flag(LIBNDR_FLAG_REMAINING)] */
23 }/* [public,flag(LIBNDR_PRINT_ARRAY_HEX)] */;
25 struct PAC_LOGON_INFO {
26 struct netr_SamInfo3 info3;
27 struct dom_sid2 *res_group_dom_sid;/* [unique] */
28 struct samr_RidWithAttributeArray res_groups;
31 struct PAC_UNKNOWN_12 {
32 uint16_t upn_size;/* [value(2*strlen_m(upn_name))] */
33 uint16_t upn_offset;
34 uint16_t domain_size;/* [value(2*strlen_m(domain_name))] */
35 uint16_t domain_offset;
36 uint16_t unknown3;
37 uint16_t unknown4;
38 uint32_t unknown5;
39 const char *upn_name;/* [charset(UTF16)] */
40 const char *domain_name;/* [charset(UTF16)] */
41 uint32_t unknown6;
44 struct PAC_LOGON_INFO_CTR {
45 struct PAC_LOGON_INFO *info;/* [unique] */
46 }/* [public] */;
48 enum PAC_TYPE
49 #ifndef USE_UINT_ENUMS
51 PAC_TYPE_LOGON_INFO=1,
52 PAC_TYPE_SRV_CHECKSUM=6,
53 PAC_TYPE_KDC_CHECKSUM=7,
54 PAC_TYPE_LOGON_NAME=10,
55 PAC_TYPE_CONSTRAINED_DELEGATION=11,
56 PAC_TYPE_UNKNOWN_12=12
58 #else
59 { __donnot_use_enum_PAC_TYPE=0x7FFFFFFF}
60 #define PAC_TYPE_LOGON_INFO ( 1 )
61 #define PAC_TYPE_SRV_CHECKSUM ( 6 )
62 #define PAC_TYPE_KDC_CHECKSUM ( 7 )
63 #define PAC_TYPE_LOGON_NAME ( 10 )
64 #define PAC_TYPE_CONSTRAINED_DELEGATION ( 11 )
65 #define PAC_TYPE_UNKNOWN_12 ( 12 )
66 #endif
69 struct DATA_BLOB_REM {
70 DATA_BLOB remaining;/* [flag(LIBNDR_FLAG_REMAINING)] */
73 union PAC_INFO {
74 struct PAC_LOGON_INFO_CTR logon_info;/* [subcontext(0xFFFFFC01),case(PAC_TYPE_LOGON_INFO)] */
75 struct PAC_SIGNATURE_DATA srv_cksum;/* [case(PAC_TYPE_SRV_CHECKSUM)] */
76 struct PAC_SIGNATURE_DATA kdc_cksum;/* [case(PAC_TYPE_KDC_CHECKSUM)] */
77 struct PAC_LOGON_NAME logon_name;/* [case(PAC_TYPE_LOGON_NAME)] */
78 struct DATA_BLOB_REM unknown;/* [subcontext(0),default] */
79 }/* [gensize,nodiscriminant,public] */;
81 struct PAC_BUFFER {
82 enum PAC_TYPE type;
83 uint32_t _ndr_size;/* [value(_ndr_size_PAC_INFO(info,type,0))] */
84 union PAC_INFO *info;/* [relative,subcontext_size(_subcontext_size_PAC_INFO(r,ndr->flags)),subcontext(0),switch_is(type),flag(LIBNDR_FLAG_ALIGN8)] */
85 uint32_t _pad;/* [value(0)] */
86 }/* [noprint,nopull,public,nopush] */;
88 struct PAC_DATA {
89 uint32_t num_buffers;
90 uint32_t version;
91 struct PAC_BUFFER *buffers;
92 }/* [public] */;
94 struct PAC_BUFFER_RAW {
95 enum PAC_TYPE type;
96 uint32_t ndr_size;
97 struct DATA_BLOB_REM *info;/* [relative,subcontext_size(NDR_ROUND(ndr_size,8)),subcontext(0),flag(LIBNDR_FLAG_ALIGN8)] */
98 uint32_t _pad;/* [value(0)] */
99 }/* [public] */;
101 struct PAC_DATA_RAW {
102 uint32_t num_buffers;
103 uint32_t version;
104 struct PAC_BUFFER_RAW *buffers;
105 }/* [public] */;
107 struct PAC_Validate {
108 uint32_t MessageType;/* [value(NETLOGON_GENERIC_KRB5_PAC_VALIDATE)] */
109 uint32_t ChecksumLength;
110 int32_t SignatureType;
111 uint32_t SignatureLength;
112 DATA_BLOB ChecksumAndSignature;/* [flag(LIBNDR_FLAG_REMAINING)] */
113 }/* [public] */;
115 struct netsamlogoncache_entry {
116 time_t timestamp;
117 struct netr_SamInfo3 info3;
118 }/* [public] */;
121 struct decode_pac {
122 struct {
123 struct PAC_DATA pac;
124 } in;
129 struct decode_pac_raw {
130 struct {
131 struct PAC_DATA_RAW pac;
132 } in;
137 struct decode_login_info {
138 struct {
139 struct PAC_LOGON_INFO logon_info;
140 } in;
145 struct decode_pac_validate {
146 struct {
147 struct PAC_Validate pac_validate;
148 } in;
152 #endif /* _HEADER_krb5pac */