mirror of
https://github.com/samba-team/samba.git
synced 2025-06-25 19:17:10 +03:00
netapi: add NetUserModalsGet and NetUserModalsSet to public headers.
Guenther (This used to be commit b4c912bfbc62768ff4d7ecb39c02dc4a2a9825d2)
This commit is contained in:
parent
974250cd03
commit
ee43b80149
@ -75,6 +75,8 @@ struct DOMAIN_CONTROLLER_INFO {
|
||||
#define FILTER_WORKSTATION_TRUST_ACCOUNT ( 0x0010 )
|
||||
#define FILTER_SERVER_TRUST_ACCOUNT ( 0x0020 )
|
||||
|
||||
#define TIMEQ_FOREVER ( (uint32_t)-1L )
|
||||
|
||||
struct SERVER_INFO_1005 {
|
||||
const char * sv1005_comment;
|
||||
};
|
||||
@ -234,6 +236,58 @@ struct USER_INFO_1007 {
|
||||
const char * usri1007_comment;
|
||||
};
|
||||
|
||||
struct USER_MODALS_INFO_0 {
|
||||
uint32_t usrmod0_min_passwd_len;
|
||||
uint32_t usrmod0_max_passwd_age;
|
||||
uint32_t usrmod0_min_passwd_age;
|
||||
uint32_t usrmod0_force_logoff;
|
||||
uint32_t usrmod0_password_hist_len;
|
||||
};
|
||||
|
||||
struct USER_MODALS_INFO_1 {
|
||||
uint32_t usrmod1_role;
|
||||
const char * usrmod1_primary;
|
||||
};
|
||||
|
||||
struct USER_MODALS_INFO_2 {
|
||||
const char * usrmod2_domain_name;
|
||||
struct domsid *usrmod2_domain_id;/* [unique] */
|
||||
};
|
||||
|
||||
struct USER_MODALS_INFO_3 {
|
||||
uint32_t usrmod3_lockout_duration;
|
||||
uint32_t usrmod3_lockout_observation_window;
|
||||
uint32_t usrmod3_lockout_threshold;
|
||||
};
|
||||
|
||||
struct USER_MODALS_INFO_1001 {
|
||||
uint32_t usrmod1001_min_passwd_len;
|
||||
};
|
||||
|
||||
struct USER_MODALS_INFO_1002 {
|
||||
uint32_t usrmod1002_max_passwd_age;
|
||||
};
|
||||
|
||||
struct USER_MODALS_INFO_1003 {
|
||||
uint32_t usrmod1003_min_passwd_age;
|
||||
};
|
||||
|
||||
struct USER_MODALS_INFO_1004 {
|
||||
uint32_t usrmod1004_force_logoff;
|
||||
};
|
||||
|
||||
struct USER_MODALS_INFO_1005 {
|
||||
uint32_t usrmod1005_password_hist_len;
|
||||
};
|
||||
|
||||
struct USER_MODALS_INFO_1006 {
|
||||
uint32_t usrmod1006_role;
|
||||
};
|
||||
|
||||
struct USER_MODALS_INFO_1007 {
|
||||
const char * usrmod1007_primary;
|
||||
};
|
||||
|
||||
struct NET_DISPLAY_USER {
|
||||
const char * usri1_name;
|
||||
const char * usri1_comment;
|
||||
@ -759,6 +813,14 @@ NET_API_STATUS NetUserSetInfo(const char * server_name /* [in] */,
|
||||
uint8_t *buffer /* [in] [ref] */,
|
||||
uint32_t *parm_err /* [out] [ref] */);
|
||||
|
||||
NET_API_STATUS NetUserModalsGet(const char * server_name /* [in] */,
|
||||
uint32_t level /* [in] */,
|
||||
uint8_t **buffer /* [out] [ref] */);
|
||||
NET_API_STATUS NetUserModalsSet(const char * server_name /* [in] */,
|
||||
uint32_t level /* [in] */,
|
||||
uint8_t *buffer /* [in] [ref] */,
|
||||
uint32_t *parm_err /* [out] [ref] */);
|
||||
|
||||
/************************************************************//**
|
||||
*
|
||||
* NetQueryDisplayInformation
|
||||
|
Loading…
x
Reference in New Issue
Block a user