diff options
author | Jean-François Micouleau <jfm@samba.org> | 2001-11-28 00:06:00 +0000 |
---|---|---|
committer | Jean-François Micouleau <jfm@samba.org> | 2001-11-28 00:06:00 +0000 |
commit | e158c4123d6d47cc43472365f5e6215a0851e001 (patch) | |
tree | 9969ea5c846755612e1d3f42d49742674f50f364 /source3/include | |
parent | 7ca15c148517fefd4516a250310a4486a5a6fc72 (diff) | |
download | samba-e158c4123d6d47cc43472365f5e6215a0851e001.tar.gz samba-e158c4123d6d47cc43472365f5e6215a0851e001.tar.bz2 samba-e158c4123d6d47cc43472365f5e6215a0851e001.zip |
added samr_set_domain_info and samr_unknown_2E.
We now get the full account policy window in usermanager, and the
framework to store all those values. I plan to add a TDB file to store
them.
oh, and found that the last value in a sam_unknown_info_12_inf struct is
an uint16 and not a uint32.
andrewb: you hardcoded the MAX_PASSWORD_AGE to 21 days. We can now turn it
to a value setable in usermanager.
J.F.
(This used to be commit 99471d25693f6672d433b90a060378f6faad867f)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/rpc_samr.h | 57 |
1 files changed, 27 insertions, 30 deletions
diff --git a/source3/include/rpc_samr.h b/source3/include/rpc_samr.h index 7817579ba9..b3b46c6f0c 100644 --- a/source3/include/rpc_samr.h +++ b/source3/include/rpc_samr.h @@ -87,6 +87,7 @@ SamrTestPrivateFunctionsUser #define SAMR_ENUM_DOMAINS 0x06 #define SAMR_OPEN_DOMAIN 0x07 #define SAMR_QUERY_DOMAIN_INFO 0x08 +#define SAMR_SET_DOMAIN_INFO 0x09 #define SAMR_CREATE_DOM_GROUP 0x0a #define SAMR_ENUM_DOM_GROUPS 0x0b @@ -127,7 +128,7 @@ SamrTestPrivateFunctionsUser #define SAMR_UNKNOWN_2b 0x2b #define SAMR_GET_USRDOM_PWINFO 0x2c #define SAMR_UNKNOWN_2D 0x2d -#define SAMR_UNKNOWN_2e 0x2e +#define SAMR_UNKNOWN_2E 0x2e /* looks like an alias for SAMR_QUERY_DOMAIN_INFO */ #define SAMR_UNKNOWN_2f 0x2f #define SAMR_QUERY_DISPINFO3 0x30 /* Alias for SAMR_QUERY_DISPINFO with info level 3 */ @@ -507,12 +508,9 @@ typedef struct sam_unknown_info_7_info typedef struct sam_unknown_info_12_inf { - uint32 unknown_0; /* 0xcf1d cc00 */ - uint32 unknown_1; /* 0xffff fffb */ - uint32 unknown_2; /* 0xcf1d cc00 */ - uint32 unknown_3; /* 0xffff fffb */ - - uint32 unknown_4; /* 0x8a88 0000 */ + NTTIME duration; + NTTIME reset_count; + uint16 bad_attempt_lockout; } SAM_UNK_INFO_12; @@ -1760,39 +1758,38 @@ typedef struct sid_info_3 /* SAMR_Q_UNKNOWN_2E */ typedef struct q_samr_unknown_2e_info { - POLICY_HND dom_pol; /* policy handle */ + POLICY_HND domain_pol; /* policy handle */ uint16 switch_value; } SAMR_Q_UNKNOWN_2E; -typedef struct sam_unknown_2e_info_12 +/* SAMR_R_UNKNOWN_2E */ +typedef struct r_samr_unknown_2e_info { - uint32 duration_low; - uint32 duration_high; - uint32 reset_count_low; - uint32 reset_count_high; - uint32 bad_attempt_lockout; -} SAM_UNK_2E_INFO_12; + uint32 ptr_0; + uint16 switch_value; + SAM_UNK_CTR *ctr; + NTSTATUS status; /* return status */ -typedef struct sam_unknown_2e_ctr_info -{ - union - { - SAM_UNK_2E_INFO_12 info12; - } info; +} SAMR_R_UNKNOWN_2E; -} SAM_UNK_2E_CTR; +/* SAMR_Q_SET_DOMAIN_INFO */ +typedef struct q_samr_set_domain_info +{ + POLICY_HND domain_pol; /* policy handle */ + uint16 switch_value0; + uint16 switch_value; + SAM_UNK_CTR *ctr; +} SAMR_Q_SET_DOMAIN_INFO; -/* SAMR_R_UNKNOWN_2E - probably an open */ -typedef struct r_samr_unknown_2e_info +/* SAMR_R_SET_DOMAIN_INFO */ +typedef struct r_samr_set_domain_info { - uint32 ptr; - uint16 switch_value; - SAM_UNK_2E_CTR *ctr; - - uint32 status; /* return status */ + NTSTATUS status; /* return status */ + +} SAMR_R_SET_DOMAIN_INFO; + -} SAMR_R_UNKNOWN_2E; #endif /* _RPC_SAMR_H */ |