2005-03-07 08:09:37 +03:00
/*
Unix SMB / CIFS implementation .
Copyright ( C ) Rafal Szczesniak 2005
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program ; if not , write to the Free Software
Foundation , Inc . , 675 Mass Ave , Cambridge , MA 0213 9 , USA .
*/
/*
2005-04-23 06:59:53 +04:00
composite function io definitions
2005-03-07 08:09:37 +03:00
*/
2006-03-16 03:23:11 +03:00
# include "librpc/gen_ndr/samr.h"
2005-06-19 02:10:32 +04:00
2005-09-26 15:47:55 +04:00
/*
* Monitor structure and message types definitions . Composite function monitoring
* allows client application to be notified on function progress . This enables
* eg . gui client to display progress bars , status messages , etc .
*/
# define rpc_create_user (0x00000001) /* userman.h */
# define rpc_open_user (0x00000002) /* userinfo.h */
# define rpc_query_user (0x00000003) /* userinfo.h */
# define rpc_close_user (0x00000004) /* userinfo.h */
# define rpc_lookup_name (0x00000005) /* userman.h */
# define rpc_delete_user (0x00000006) /* userman.h */
2005-10-02 23:59:24 +04:00
# define rpc_set_user (0x00000007) /* userman.h */
2005-09-26 15:47:55 +04:00
struct monitor_msg {
uint32_t type ;
void * data ;
size_t data_size ;
} ;
2005-06-19 02:10:32 +04:00
2005-06-11 14:31:33 +04:00
struct libnet_rpc_userinfo {
2005-03-07 08:09:37 +03:00
struct {
struct policy_handle domain_handle ;
const char * sid ;
uint16_t level ;
} in ;
struct {
union samr_UserInfo info ;
} out ;
} ;
2005-04-19 07:55:58 +04:00
2005-06-11 14:31:33 +04:00
struct libnet_rpc_useradd {
2005-04-19 07:55:58 +04:00
struct {
struct policy_handle domain_handle ;
const char * username ;
} in ;
struct {
struct policy_handle user_handle ;
} out ;
} ;
2005-04-21 11:24:16 +04:00
2005-06-11 14:31:33 +04:00
struct libnet_rpc_userdel {
2005-04-21 11:24:16 +04:00
struct {
struct policy_handle domain_handle ;
const char * username ;
} in ;
struct {
struct policy_handle user_handle ;
} out ;
} ;
2005-06-04 03:10:26 +04:00
2005-07-23 14:27:45 +04:00
# define USERMOD_FIELD_ACCOUNT_NAME ( 0x00000001 )
# define USERMOD_FIELD_FULL_NAME ( 0x00000002 )
2005-07-26 02:00:56 +04:00
# define USERMOD_FIELD_DESCRIPTION ( 0x00000010 )
2005-08-02 00:47:26 +04:00
# define USERMOD_FIELD_COMMENT ( 0x00000020 )
2005-07-26 02:00:56 +04:00
# define USERMOD_FIELD_LOGON_SCRIPT ( 0x00000100 )
# define USERMOD_FIELD_PROFILE_PATH ( 0x00000200 )
2005-07-28 01:46:06 +04:00
# define USERMOD_FIELD_ACCT_EXPIRY ( 0x00004000 )
2005-08-02 00:47:26 +04:00
# define USERMOD_FIELD_ALLOW_PASS_CHG ( 0x00008000 )
2005-08-04 06:51:26 +04:00
# define USERMOD_FIELD_FORCE_PASS_CHG ( 0x00010000 )
2005-08-02 00:47:26 +04:00
# define USERMOD_FIELD_ACCT_FLAGS ( 0x00100000 )
2005-07-23 14:27:45 +04:00
2005-07-22 02:32:04 +04:00
struct libnet_rpc_usermod {
struct {
struct policy_handle domain_handle ;
const char * username ;
2005-07-23 14:27:45 +04:00
struct usermod_change {
2005-07-22 02:32:04 +04:00
uint32_t fields ; /* bitmask field */
const char * account_name ;
const char * full_name ;
2005-07-26 02:00:56 +04:00
const char * description ;
2005-08-02 00:47:26 +04:00
const char * comment ;
2005-07-26 02:00:56 +04:00
const char * logon_script ;
const char * profile_path ;
2005-07-28 01:46:06 +04:00
struct timeval * acct_expiry ;
2005-08-02 00:47:26 +04:00
struct timeval * allow_password_change ;
2005-08-04 06:51:26 +04:00
struct timeval * force_password_change ;
2005-08-05 05:23:06 +04:00
uint32_t acct_flags ;
2005-07-22 02:32:04 +04:00
} change ;
} in ;
} ;
2005-06-11 14:31:33 +04:00
struct libnet_rpc_domain_open {
2005-06-04 03:10:26 +04:00
struct {
2005-06-06 12:59:19 +04:00
const char * domain_name ;
2005-06-04 03:10:26 +04:00
uint32_t access_mask ;
} in ;
struct {
struct policy_handle domain_handle ;
} out ;
} ;