1 /* header auto-generated by pidl */
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
{
16 uint16_t size
;/* [value(2*strlen_m(account_name))] */
17 const char *account_name
;/* [charset(UTF16)] */
20 struct PAC_SIGNATURE_DATA
{
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))] */
34 uint16_t domain_size
;/* [value(2*strlen_m(domain_name))] */
35 uint16_t domain_offset
;
39 const char *upn_name
;/* [charset(UTF16)] */
40 const char *domain_name
;/* [charset(UTF16)] */
44 struct PAC_LOGON_INFO_CTR
{
45 struct PAC_LOGON_INFO
*info
;/* [unique] */
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
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 )
69 struct DATA_BLOB_REM
{
70 DATA_BLOB remaining
;/* [flag(LIBNDR_FLAG_REMAINING)] */
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] */;
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] */;
91 struct PAC_BUFFER
*buffers
;
94 struct PAC_BUFFER_RAW
{
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)] */
101 struct PAC_DATA_RAW
{
102 uint32_t num_buffers
;
104 struct PAC_BUFFER_RAW
*buffers
;
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)] */
115 struct netsamlogoncache_entry
{
117 struct netr_SamInfo3 info3
;
129 struct decode_pac_raw
{
131 struct PAC_DATA_RAW pac
;
137 struct decode_login_info
{
139 struct PAC_LOGON_INFO logon_info
;
145 struct decode_pac_validate
{
147 struct PAC_Validate pac_validate
;
152 #endif /* _HEADER_krb5pac */