1 | /* header auto-generated by pidl */
|
---|
2 |
|
---|
3 | #include <stdint.h>
|
---|
4 |
|
---|
5 | #include "librpc/gen_ndr/security.h"
|
---|
6 | #include "librpc/gen_ndr/netlogon.h"
|
---|
7 | #include "librpc/gen_ndr/samr.h"
|
---|
8 | #ifndef _HEADER_krb5pac
|
---|
9 | #define _HEADER_krb5pac
|
---|
10 |
|
---|
11 | struct PAC_LOGON_NAME {
|
---|
12 | NTTIME logon_time;
|
---|
13 | uint16_t size;/* [value(2*strlen_m(account_name))] */
|
---|
14 | const char *account_name;/* [charset(UTF16)] */
|
---|
15 | };
|
---|
16 |
|
---|
17 | struct PAC_SIGNATURE_DATA {
|
---|
18 | uint32_t type;
|
---|
19 | DATA_BLOB signature;/* [flag(LIBNDR_FLAG_REMAINING)] */
|
---|
20 | }/* [public,flag(LIBNDR_PRINT_ARRAY_HEX)] */;
|
---|
21 |
|
---|
22 | struct PAC_LOGON_INFO {
|
---|
23 | struct netr_SamInfo3 info3;
|
---|
24 | struct dom_sid2 *res_group_dom_sid;/* [unique] */
|
---|
25 | struct samr_RidWithAttributeArray res_groups;
|
---|
26 | }/* [gensize] */;
|
---|
27 |
|
---|
28 | struct PAC_UNKNOWN_12 {
|
---|
29 | uint16_t upn_size;/* [value(2*strlen_m(upn_name))] */
|
---|
30 | uint16_t upn_offset;
|
---|
31 | uint16_t domain_size;/* [value(2*strlen_m(domain_name))] */
|
---|
32 | uint16_t domain_offset;
|
---|
33 | uint16_t unknown3;
|
---|
34 | uint16_t unknown4;
|
---|
35 | uint32_t unknown5;
|
---|
36 | const char *upn_name;/* [charset(UTF16)] */
|
---|
37 | const char *domain_name;/* [charset(UTF16)] */
|
---|
38 | uint32_t unknown6;
|
---|
39 | };
|
---|
40 |
|
---|
41 | struct PAC_LOGON_INFO_CTR {
|
---|
42 | uint32_t unknown1;/* [value(0x00081001)] */
|
---|
43 | uint32_t unknown2;/* [value(0xCCCCCCCC)] */
|
---|
44 | uint32_t _ndr_size;/* [value(NDR_ROUND(ndr_size_PAC_LOGON_INFO(info,ndr->flags)+4,8))] */
|
---|
45 | uint32_t unknown3;/* [value(0x00000000)] */
|
---|
46 | struct PAC_LOGON_INFO *info;/* [unique] */
|
---|
47 | }/* [public] */;
|
---|
48 |
|
---|
49 | enum PAC_TYPE
|
---|
50 | #ifndef USE_UINT_ENUMS
|
---|
51 | {
|
---|
52 | PAC_TYPE_LOGON_INFO=1,
|
---|
53 | PAC_TYPE_SRV_CHECKSUM=6,
|
---|
54 | PAC_TYPE_KDC_CHECKSUM=7,
|
---|
55 | PAC_TYPE_LOGON_NAME=10,
|
---|
56 | PAC_TYPE_CONSTRAINED_DELEGATION=11,
|
---|
57 | PAC_TYPE_UNKNOWN_12=12
|
---|
58 | }
|
---|
59 | #else
|
---|
60 | { __donnot_use_enum_PAC_TYPE=0x7FFFFFFF}
|
---|
61 | #define PAC_TYPE_LOGON_INFO ( 1 )
|
---|
62 | #define PAC_TYPE_SRV_CHECKSUM ( 6 )
|
---|
63 | #define PAC_TYPE_KDC_CHECKSUM ( 7 )
|
---|
64 | #define PAC_TYPE_LOGON_NAME ( 10 )
|
---|
65 | #define PAC_TYPE_CONSTRAINED_DELEGATION ( 11 )
|
---|
66 | #define PAC_TYPE_UNKNOWN_12 ( 12 )
|
---|
67 | #endif
|
---|
68 | ;
|
---|
69 |
|
---|
70 | struct DATA_BLOB_REM {
|
---|
71 | DATA_BLOB remaining;/* [flag(LIBNDR_FLAG_REMAINING)] */
|
---|
72 | };
|
---|
73 |
|
---|
74 | union PAC_INFO {
|
---|
75 | struct PAC_LOGON_INFO_CTR logon_info;/* [case(PAC_TYPE_LOGON_INFO)] */
|
---|
76 | struct PAC_SIGNATURE_DATA srv_cksum;/* [case(PAC_TYPE_SRV_CHECKSUM)] */
|
---|
77 | struct PAC_SIGNATURE_DATA kdc_cksum;/* [case(PAC_TYPE_KDC_CHECKSUM)] */
|
---|
78 | struct PAC_LOGON_NAME logon_name;/* [case(PAC_TYPE_LOGON_NAME)] */
|
---|
79 | struct DATA_BLOB_REM unknown;/* [subcontext(0),default] */
|
---|
80 | }/* [gensize,nodiscriminant,public] */;
|
---|
81 |
|
---|
82 | struct PAC_BUFFER {
|
---|
83 | enum PAC_TYPE type;
|
---|
84 | uint32_t _ndr_size;/* [value(_ndr_size_PAC_INFO(info,type,0))] */
|
---|
85 | union PAC_INFO *info;/* [relative,subcontext_size(_subcontext_size_PAC_INFO(r,ndr->flags)),subcontext(0),switch_is(type),flag(LIBNDR_FLAG_ALIGN8)] */
|
---|
86 | uint32_t _pad;/* [value(0)] */
|
---|
87 | }/* [noprint,nopull,public,nopush] */;
|
---|
88 |
|
---|
89 | struct PAC_DATA {
|
---|
90 | uint32_t num_buffers;
|
---|
91 | uint32_t version;
|
---|
92 | struct PAC_BUFFER *buffers;
|
---|
93 | }/* [public] */;
|
---|
94 |
|
---|
95 | struct PAC_BUFFER_RAW {
|
---|
96 | enum PAC_TYPE type;
|
---|
97 | uint32_t ndr_size;
|
---|
98 | struct DATA_BLOB_REM *info;/* [relative,subcontext_size(NDR_ROUND(ndr_size,8)),subcontext(0),flag(LIBNDR_FLAG_ALIGN8)] */
|
---|
99 | uint32_t _pad;/* [value(0)] */
|
---|
100 | }/* [public] */;
|
---|
101 |
|
---|
102 | struct PAC_DATA_RAW {
|
---|
103 | uint32_t num_buffers;
|
---|
104 | uint32_t version;
|
---|
105 | struct PAC_BUFFER_RAW *buffers;
|
---|
106 | }/* [public] */;
|
---|
107 |
|
---|
108 | struct netsamlogoncache_entry {
|
---|
109 | time_t timestamp;
|
---|
110 | struct netr_SamInfo3 info3;
|
---|
111 | }/* [public] */;
|
---|
112 |
|
---|
113 |
|
---|
114 | struct decode_pac {
|
---|
115 | struct {
|
---|
116 | struct PAC_DATA pac;
|
---|
117 | } in;
|
---|
118 |
|
---|
119 | };
|
---|
120 |
|
---|
121 |
|
---|
122 | struct decode_pac_raw {
|
---|
123 | struct {
|
---|
124 | struct PAC_DATA_RAW pac;
|
---|
125 | } in;
|
---|
126 |
|
---|
127 | };
|
---|
128 |
|
---|
129 |
|
---|
130 | struct decode_login_info {
|
---|
131 | struct {
|
---|
132 | struct PAC_LOGON_INFO logon_info;
|
---|
133 | } in;
|
---|
134 |
|
---|
135 | };
|
---|
136 |
|
---|
137 | #endif /* _HEADER_krb5pac */
|
---|