2004-07-20 20:30:29 +00:00
/*
krb5 PAC
*/
#include "idl_types.h"
2006-11-06 22:54:49 +00:00
import "security.idl", "netlogon.idl", "samr.idl";
2004-07-20 20:30:29 +00:00
[
2006-04-24 20:15:35 +00:00
uuid("12345778-1234-abcd-0000-00000000"),
2004-07-20 20:30:29 +00:00
version(0.0),
2004-11-17 14:35:29 +00:00
pointer_default(unique),
2006-11-06 22:54:49 +00:00
helpstring("Active Directory KRB5 PAC")
2004-07-20 20:30:29 +00:00
]
interface krb5pac
{
typedef struct {
2004-07-21 09:57:39 +00:00
NTTIME logon_time;
2004-08-17 09:31:36 +00:00
[flag(STR_SIZE2|STR_NOTERM|STR_BYTESIZE)] string account_name;
2005-06-29 13:55:09 +00:00
} PAC_LOGON_NAME;
2004-07-20 20:30:29 +00:00
2005-09-12 21:10:40 +00:00
typedef [public,flag(NDR_PAHEX)] struct {
2004-07-20 20:30:29 +00:00
uint32 type;
2005-09-10 10:39:45 +00:00
[flag(NDR_REMAINING)] DATA_BLOB signature;
2004-07-20 20:30:29 +00:00
} PAC_SIGNATURE_DATA;
2005-07-05 06:13:12 +00:00
typedef [gensize] struct {
2004-12-23 02:23:42 +00:00
netr_SamInfo3 info3;
2004-08-10 01:03:44 +00:00
dom_sid2 *res_group_dom_sid;
2005-06-29 13:55:09 +00:00
samr_RidWithAttributeArray res_groups;
2004-08-10 01:03:44 +00:00
} PAC_LOGON_INFO;
2004-07-20 20:30:29 +00:00
2005-07-04 15:42:08 +00:00
typedef struct {
2005-07-05 06:13:12 +00:00
[value(0x00081001)] uint32 unknown1;
[value(0xCCCCCCCC)] uint32 unknown2;
[value(NDR_ROUND(ndr_size_PAC_LOGON_INFO(info, ndr->flags)+4,8))] uint32 _ndr_size;
[value(0x00000000)] uint32 unknown3;
PAC_LOGON_INFO *info;
2005-07-04 15:42:08 +00:00
} PAC_LOGON_INFO_CTR;
typedef [public,v1_enum] enum {
PAC_TYPE_LOGON_INFO = 1,
PAC_TYPE_SRV_CHECKSUM = 6,
PAC_TYPE_KDC_CHECKSUM = 7,
PAC_TYPE_LOGON_NAME = 10
} PAC_TYPE;
2004-07-20 20:30:29 +00:00
2005-07-04 15:42:08 +00:00
typedef [public,nodiscriminant,gensize] union {
[case(PAC_TYPE_LOGON_INFO)] PAC_LOGON_INFO_CTR logon_info;
2004-08-12 07:37:49 +00:00
[case(PAC_TYPE_SRV_CHECKSUM)] PAC_SIGNATURE_DATA srv_cksum;
[case(PAC_TYPE_KDC_CHECKSUM)] PAC_SIGNATURE_DATA kdc_cksum;
2005-06-29 13:55:09 +00:00
[case(PAC_TYPE_LOGON_NAME)] PAC_LOGON_NAME logon_name;
2004-07-20 20:30:29 +00:00
} PAC_INFO;
2005-07-04 15:42:08 +00:00
typedef [public,nopush,nopull,noprint] struct {
PAC_TYPE type;
[value(_ndr_size_PAC_INFO(info, type, 0))] uint32 _ndr_size;
[relative,switch_is(type),subcontext(0),subcontext_size(_subcontext_size_PAC_INFO(r, ndr->flags)),flag(NDR_ALIGN8)] PAC_INFO *info;
[value(0)] uint32 _pad; /* Top half of a 64 bit pointer? */
2004-08-12 07:37:49 +00:00
} PAC_BUFFER;
2004-07-20 20:30:29 +00:00
2005-07-04 02:36:16 +00:00
typedef [public] struct {
2004-07-20 20:30:29 +00:00
uint32 num_buffers;
uint32 version;
2004-08-12 07:37:49 +00:00
PAC_BUFFER buffers[num_buffers];
2004-07-20 20:30:29 +00:00
} PAC_DATA;
2005-09-12 13:16:56 +00:00
typedef struct {
[flag(NDR_REMAINING)] DATA_BLOB remaining;
} DATA_BLOB_REM;
typedef [public] struct {
PAC_TYPE type;
uint32 ndr_size;
[relative,subcontext(0),subcontext_size(NDR_ROUND(r->ndr_size,8)),flag(NDR_ALIGN8)] DATA_BLOB_REM *info;
[value(0)] uint32 _pad; /* Top half of a 64 bit pointer? */
} PAC_BUFFER_RAW;
typedef [public] struct {
uint32 num_buffers;
uint32 version;
PAC_BUFFER_RAW buffers[num_buffers];
} PAC_DATA_RAW;
2004-07-20 20:30:29 +00:00
void decode_pac(
[in] PAC_DATA pac
);
2005-09-12 13:16:56 +00:00
void decode_pac_raw(
[in] PAC_DATA_RAW pac
);
2004-07-20 20:30:29 +00:00
void decode_login_info(
[in] PAC_LOGON_INFO logon_info
);
}