summaryrefslogtreecommitdiff
path: root/source4/librpc/idl/samr.idl
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-15 11:34:01 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-15 11:34:01 +0000
commite7d70e40d5fab250ce8f88e2e6f9a302e3156ce2 (patch)
tree1ab31aca9b1a630f417f0b2ab1db0093e2a37676 /source4/librpc/idl/samr.idl
parent8f09c940b7d9b223d5364b3e2e5d46338072c27f (diff)
downloadsamba-e7d70e40d5fab250ce8f88e2e6f9a302e3156ce2.tar.gz
samba-e7d70e40d5fab250ce8f88e2e6f9a302e3156ce2.tar.bz2
samba-e7d70e40d5fab250ce8f88e2e6f9a302e3156ce2.zip
added UserInfo level 21
(This used to be commit b90eff794f083029c568d3ec4ec2a7d2f7741139)
Diffstat (limited to 'source4/librpc/idl/samr.idl')
-rw-r--r--source4/librpc/idl/samr.idl55
1 files changed, 47 insertions, 8 deletions
diff --git a/source4/librpc/idl/samr.idl b/source4/librpc/idl/samr.idl
index 894b438a0d..90e7a923d8 100644
--- a/source4/librpc/idl/samr.idl
+++ b/source4/librpc/idl/samr.idl
@@ -92,13 +92,13 @@
typedef struct {
HYPER_T force_logoff_time;
- samr_Name unknown_name;
+ samr_Name unknown1;
samr_Name domain; /* domain name */
samr_Name primary; /* PDC name if this is a BDC */
HYPER_T sequence_num;
- uint32 unknown_2;
+ uint32 unknown2;
uint32 role;
- uint32 unknown_3;
+ uint32 unknown3;
uint32 num_users;
uint32 num_groups;
uint32 num_aliases;
@@ -109,7 +109,7 @@
} samr_DomInfo3;
typedef struct {
- samr_Name unknown_name;
+ samr_Name unknown;
} samr_DomInfo4;
typedef struct {
@@ -135,13 +135,13 @@
typedef struct {
HYPER_T force_logoff_time;
- samr_Name unknown_name;
+ samr_Name unknown1;
samr_Name domain;
samr_Name primary;
HYPER_T sequence_num;
- uint32 unknown_2;
+ uint32 unknown2;
uint32 role;
- uint32 unknown_3;
+ uint32 unknown3;
uint32 num_users;
uint32 num_groups;
uint32 num_aliases;
@@ -348,7 +348,7 @@
NTTIME last_logoff;
NTTIME last_pwd_change;
NTTIME allow_pwd_change;
- NTTIME force_pwd_change; /* uncertain about this one */
+ NTTIME force_pwd_change;
uint32 units_per_week;
[size_is(1260), length_is(units_per_week/8)] uint8 *logon_hours;
uint16 bad_pwd_count;
@@ -432,6 +432,44 @@
samr_Name callback;
} samr_UserInfo20;
+ typedef struct {
+ NTTIME last_logon;
+ NTTIME last_logoff;
+ NTTIME last_pwd_change;
+ NTTIME acct_expiry;
+ NTTIME allow_pwd_change;
+ NTTIME force_pwd_change;
+ samr_Name username;
+ samr_Name full_name;
+ samr_Name home_dir;
+ samr_Name home_drive;
+ samr_Name logon_script;
+ samr_Name profile;
+ samr_Name description;
+ samr_Name workstations;
+ samr_Name comment;
+ samr_Name callback;
+ samr_Name unknown1;
+ samr_Name unknown2;
+ samr_Name unknown3;
+ uint32 buf_count;
+ [size_is(buf_count)] uint8 *buffer;
+ uint32 rid;
+ uint32 primary_group_rid;
+ uint32 acct_flags;
+ uint32 fields_present;
+ uint32 units_per_week;
+ [size_is(1260), length_is(units_per_week/8)] uint8 *logon_hours;
+ uint16 bad_pwd_count;
+ uint16 num_logons;
+ uint16 country_code;
+ uint16 code_page;
+ uint8 nt_pwd_set;
+ uint8 lm_pwd_set;
+ uint8 expired_flag;
+ uint8 unknown4;
+ } samr_UserInfo21;
+
typedef union {
case(1) samr_UserInfo1 info1;
case(2) samr_UserInfo2 info2;
@@ -450,6 +488,7 @@
case(16) samr_UserInfo16 info16;
case(17) samr_UserInfo17 info17;
case(20) samr_UserInfo20 info20;
+ case(21) samr_UserInfo21 info21;
} samr_UserInfo;
NTSTATUS samr_QueryUserInfo(