summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2003-04-09 16:48:59 +0000
committerJim McDonough <jmcd@samba.org>2003-04-09 16:48:59 +0000
commit1f04eb2e2617ac05974c21bdac9ebb4781b5a9d9 (patch)
treef38fc1e788b9df1cb7beb7f5cf080b23049f3524 /source3/include
parent42233f5c5876c1fde9ada8aaac0f1f568aacc4df (diff)
downloadsamba-1f04eb2e2617ac05974c21bdac9ebb4781b5a9d9.tar.gz
samba-1f04eb2e2617ac05974c21bdac9ebb4781b5a9d9.tar.bz2
samba-1f04eb2e2617ac05974c21bdac9ebb4781b5a9d9.zip
Complete what I've seen (and then some)t of the PAC.
I haven't seen the rid+attr arrays for group membership, nor sids or the same kind of arrays for resource domains, so I don't know how that will work. Also, the PAC info type 10 is now decoded, but I don't know what it's for. It has an NTTIME, a 16-bit name length, and a username. According to M$, it's not needed, because they didn't doc it... (This used to be commit 28ab8504cf6c181866106e5cc626a5896283d0a9)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/authdata.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/source3/include/authdata.h b/source3/include/authdata.h
index 1521185a8f..0798b72bdf 100644
--- a/source3/include/authdata.h
+++ b/source3/include/authdata.h
@@ -27,6 +27,13 @@
#define PAC_TYPE_LOGON_INFO 1
#define PAC_TYPE_SERVER_CHECKSUM 6
#define PAC_TYPE_PRIVSVR_CHECKSUM 7
+#define PAC_TYPE_UNKNOWN_10 10
+
+typedef struct unknown_type_10 {
+ NTTIME unknown_time;
+ uint16 len;
+ uint16 *username; /* might not be null terminated, so not UNISTR */
+} UNKNOWN_TYPE_10;
typedef struct pac_signature_data {
uint32 type;
@@ -38,6 +45,11 @@ typedef struct group_membership {
uint32 attrs;
} GROUP_MEMBERSHIP;
+typedef struct group_membership_array {
+ uint32 count;
+ GROUP_MEMBERSHIP *group_membership;
+} GROUP_MEMBERSHIP_ARRAY;
+
typedef struct krb_sid_and_attrs {
uint32 sid_ptr;
uint32 attrs;
@@ -93,7 +105,7 @@ typedef struct pac_logon_info {
uint32 ptr_res_group_dom_sid;
uint32 res_group_count;
- uint32 ptr_res_group_sids;
+ uint32 ptr_res_groups;
UNISTR2 uni_user_name; /* user name unicode string header */
UNISTR2 uni_full_name; /* user's full name unicode string header */
@@ -104,12 +116,11 @@ typedef struct pac_logon_info {
UNISTR2 uni_dom_controller;
UNISTR2 uni_dom_name;
DOM_SID2 dom_sid;
- /* group membership array needs to go in here.
- I've not seen it on the wire */
+ GROUP_MEMBERSHIP_ARRAY groups;
KRB_SID_AND_ATTR_ARRAY extra_sids;
DOM_SID2 res_group_dom_sid;
- /* resource group membership array needs to go in here */
-
+ GROUP_MEMBERSHIP_ARRAY res_groups;
+
} PAC_LOGON_INFO;
typedef struct pac_info_ctr
@@ -119,6 +130,7 @@ typedef struct pac_info_ctr
PAC_LOGON_INFO *logon_info;
PAC_SIGNATURE_DATA *srv_cksum;
PAC_SIGNATURE_DATA *privsrv_cksum;
+ UNKNOWN_TYPE_10 *type_10;
} pac;
} PAC_INFO_CTR;