2000-05-09 11:43:00 +00:00
# ifndef _WINBINDD_PROTO_H_
# define _WINBINDD_PROTO_H_
/* This file is automatically generated with "make proto". DO NOT EDIT */
2001-08-22 02:48:16 +00:00
/* The following definitions come from nsswitch/winbindd.c */
2000-05-09 11:43:00 +00:00
2001-05-07 04:32:40 +00:00
void winbindd_dump_status ( void ) ;
2000-05-09 11:43:00 +00:00
int main ( int argc , char * * argv ) ;
2001-08-22 02:48:16 +00:00
/* The following definitions come from nsswitch/winbindd_cache.c */
2000-05-09 11:43:00 +00:00
void winbindd_cache_init ( void ) ;
2001-05-07 04:32:40 +00:00
void winbindd_store_user_cache ( char * domain ,
struct getpwent_user * sam_entries ,
int num_sam_entries ) ;
void winbindd_store_group_cache ( char * domain ,
struct acct_info * sam_entries ,
int num_sam_entries ) ;
void winbindd_store_user_cache_entry ( char * domain , char * user_name ,
struct winbindd_pw * pw ) ;
void winbindd_store_uid_cache_entry ( char * domain , uid_t uid ,
2000-05-09 11:43:00 +00:00
struct winbindd_pw * pw ) ;
2001-05-07 04:32:40 +00:00
void winbindd_store_group_cache_entry ( char * domain , char * group_name ,
struct winbindd_gr * gr , void * extra_data ,
int extra_data_len ) ;
void winbindd_store_gid_cache_entry ( char * domain , gid_t gid ,
struct winbindd_gr * gr , void * extra_data ,
int extra_data_len ) ;
BOOL winbindd_fetch_user_cache ( char * domain_name ,
struct getpwent_user * * sam_entries ,
2000-05-09 11:43:00 +00:00
int * num_entries ) ;
2001-05-07 04:32:40 +00:00
BOOL winbindd_fetch_group_cache ( char * domain_name ,
struct acct_info * * sam_entries ,
2000-05-09 11:43:00 +00:00
int * num_entries ) ;
BOOL winbindd_fetch_user_cache_entry ( char * domain_name , char * user ,
struct winbindd_pw * pw ) ;
BOOL winbindd_fetch_uid_cache_entry ( char * domain_name , uid_t uid ,
struct winbindd_pw * pw ) ;
BOOL winbindd_fetch_group_cache_entry ( char * domain_name , char * group ,
struct winbindd_gr * gr ,
void * * extra_data , int * extra_data_len ) ;
BOOL winbindd_fetch_gid_cache_entry ( char * domain_name , gid_t gid ,
struct winbindd_gr * gr ,
void * * extra_data , int * extra_data_len ) ;
void winbindd_flush_cache ( void ) ;
2001-05-07 04:32:40 +00:00
void winbindd_cache_dump_status ( void ) ;
2000-05-09 11:43:00 +00:00
2001-08-22 02:48:16 +00:00
/* The following definitions come from nsswitch/winbindd_group.c */
2000-05-09 11:43:00 +00:00
2001-05-07 04:32:40 +00:00
enum winbindd_result winbindd_getgrnam_from_group ( struct winbindd_cli_state
* state ) ;
2000-05-09 11:43:00 +00:00
enum winbindd_result winbindd_getgrnam_from_gid ( struct winbindd_cli_state
* state ) ;
enum winbindd_result winbindd_setgrent ( struct winbindd_cli_state * state ) ;
enum winbindd_result winbindd_endgrent ( struct winbindd_cli_state * state ) ;
enum winbindd_result winbindd_getgrent ( struct winbindd_cli_state * state ) ;
2001-05-07 04:32:40 +00:00
enum winbindd_result winbindd_list_groups ( struct winbindd_cli_state * state ) ;
enum winbindd_result winbindd_getgroups ( struct winbindd_cli_state * state ) ;
2000-05-09 11:43:00 +00:00
2001-08-22 02:48:16 +00:00
/* The following definitions come from nsswitch/winbindd_idmap.c */
2000-05-09 11:43:00 +00:00
BOOL winbindd_idmap_get_uid_from_rid ( char * domain_name , uint32 user_rid ,
uid_t * uid ) ;
BOOL winbindd_idmap_get_gid_from_rid ( char * domain_name , uint32 group_rid ,
gid_t * gid ) ;
BOOL get_rid_from_id ( int id , uint32 * rid , struct winbindd_domain * * domain ,
BOOL isgroup ) ;
BOOL winbindd_idmap_get_rid_from_uid ( uid_t uid , uint32 * user_rid ,
struct winbindd_domain * * domain ) ;
BOOL winbindd_idmap_get_rid_from_gid ( gid_t gid , uint32 * group_rid ,
struct winbindd_domain * * domain ) ;
BOOL winbindd_idmap_init ( void ) ;
2001-05-07 04:32:40 +00:00
void winbindd_idmap_dump_status ( void ) ;
2001-08-22 02:48:16 +00:00
/* The following definitions come from nsswitch/winbindd_misc.c */
2001-05-07 04:32:40 +00:00
BOOL _get_trust_account_password ( char * domain , unsigned char * ret_pwd ,
2001-08-22 02:48:16 +00:00
time_t * pass_last_set_time ) ;
2001-05-07 04:32:40 +00:00
enum winbindd_result winbindd_check_machine_acct (
struct winbindd_cli_state * state ) ;
enum winbindd_result winbindd_list_trusted_domains ( struct winbindd_cli_state
* state ) ;
2000-05-09 11:43:00 +00:00
2001-08-22 02:48:16 +00:00
/* The following definitions come from nsswitch/winbindd_pam.c */
2000-05-09 11:43:00 +00:00
enum winbindd_result winbindd_pam_auth ( struct winbindd_cli_state * state ) ;
2001-08-22 02:48:16 +00:00
enum winbindd_result winbindd_pam_auth_crap ( struct winbindd_cli_state * state ) ;
2001-05-07 04:32:40 +00:00
enum winbindd_result winbindd_pam_chauthtok ( struct winbindd_cli_state * state ) ;
2001-08-22 02:48:16 +00:00
/* The following definitions come from nsswitch/winbindd_sid.c */
2001-05-07 04:32:40 +00:00
enum winbindd_result winbindd_lookupsid ( struct winbindd_cli_state * state ) ;
enum winbindd_result winbindd_lookupname ( struct winbindd_cli_state * state ) ;
enum winbindd_result winbindd_sid_to_uid ( struct winbindd_cli_state * state ) ;
enum winbindd_result winbindd_sid_to_gid ( struct winbindd_cli_state * state ) ;
enum winbindd_result winbindd_uid_to_sid ( struct winbindd_cli_state * state ) ;
enum winbindd_result winbindd_gid_to_sid ( struct winbindd_cli_state * state ) ;
2000-05-09 11:43:00 +00:00
2001-08-22 02:48:16 +00:00
/* The following definitions come from nsswitch/winbindd_user.c */
2000-05-09 11:43:00 +00:00
2001-05-07 04:32:40 +00:00
enum winbindd_result winbindd_getpwnam_from_user ( struct winbindd_cli_state
* state ) ;
2000-05-09 11:43:00 +00:00
enum winbindd_result winbindd_getpwnam_from_uid ( struct winbindd_cli_state
* state ) ;
enum winbindd_result winbindd_setpwent ( struct winbindd_cli_state * state ) ;
enum winbindd_result winbindd_endpwent ( struct winbindd_cli_state * state ) ;
enum winbindd_result winbindd_getpwent ( struct winbindd_cli_state * state ) ;
2001-05-07 04:32:40 +00:00
enum winbindd_result winbindd_list_users ( struct winbindd_cli_state * state ) ;
2000-05-09 11:43:00 +00:00
2001-08-22 02:48:16 +00:00
/* The following definitions come from nsswitch/winbindd_util.c */
2000-05-09 11:43:00 +00:00
2001-05-07 04:32:40 +00:00
void debug_conn_state ( void ) ;
2000-05-09 11:43:00 +00:00
BOOL domain_handles_open ( struct winbindd_domain * domain ) ;
2001-05-07 04:32:40 +00:00
void winbindd_kill_connections ( struct winbindd_domain * domain ) ;
void winbindd_kill_all_connections ( void ) ;
void establish_connections ( BOOL force_reestablish ) ;
2000-05-09 11:43:00 +00:00
BOOL lookup_domain_sid ( char * domain_name , struct winbindd_domain * domain ) ;
BOOL get_domain_info ( struct winbindd_domain * domain ) ;
2001-05-07 04:32:40 +00:00
BOOL winbindd_lookup_sid_by_name ( char * name , DOM_SID * sid ,
2000-05-09 11:43:00 +00:00
enum SID_NAME_USE * type ) ;
2001-05-07 04:32:40 +00:00
BOOL winbindd_lookup_name_by_sid ( DOM_SID * sid , fstring name ,
2000-05-09 11:43:00 +00:00
enum SID_NAME_USE * type ) ;
BOOL winbindd_lookup_userinfo ( struct winbindd_domain * domain ,
2001-05-14 03:58:49 +00:00
uint32 user_rid , SAM_USERINFO_CTR * * user_info ) ;
2001-05-07 04:32:40 +00:00
BOOL winbindd_lookup_usergroups ( struct winbindd_domain * domain ,
uint32 user_rid , uint32 * num_groups ,
DOM_GID * * user_groups ) ;
2000-05-09 11:43:00 +00:00
BOOL winbindd_lookup_groupinfo ( struct winbindd_domain * domain ,
uint32 group_rid , GROUP_INFO_CTR * info ) ;
BOOL winbindd_lookup_groupmem ( struct winbindd_domain * domain ,
uint32 group_rid , uint32 * num_names ,
uint32 * * rid_mem , char * * * names ,
enum SID_NAME_USE * * name_types ) ;
struct winbindd_domain * find_domain_from_name ( char * domain_name ) ;
2001-05-07 04:32:40 +00:00
struct winbindd_domain * find_domain_from_sid ( DOM_SID * sid ) ;
2000-05-09 11:43:00 +00:00
void free_getent_state ( struct getent_state * state ) ;
BOOL winbindd_param_init ( void ) ;
char * winbindd_cmd_to_string ( enum winbindd_cmd cmd ) ;
uint32 domain_sequence_number ( char * domain_name ) ;
2001-05-07 04:32:40 +00:00
uint32 winbindd_query_dispinfo ( struct winbindd_domain * domain ,
uint32 * start_ndx , uint16 info_level ,
uint32 * num_entries , SAM_DISPINFO_CTR * ctr ) ;
BOOL check_domain_env ( char * domain_env , char * domain ) ;
void parse_domain_user ( char * domuser , fstring domain , fstring user ) ;
2001-05-14 03:58:49 +00:00
# endif /* _PROTO_H_ */