mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
32cb0660d2
this does not yet compile, but I'm working on that.
(This used to be commit 3fb862531a
)
114 lines
5.8 KiB
C
114 lines
5.8 KiB
C
#ifndef _WINBINDD_PROTO_H_
|
|
#define _WINBINDD_PROTO_H_
|
|
/* This file is automatically generated with "make proto". DO NOT EDIT */
|
|
|
|
|
|
/*The following definitions come from nsswitch/winbindd.c */
|
|
|
|
int main(int argc, char **argv);
|
|
|
|
/*The following definitions come from nsswitch/winbindd_cache.c */
|
|
|
|
void winbindd_cache_init(void);
|
|
void winbindd_fill_user_cache(char *domain_name,
|
|
struct acct_info *sam_entries,
|
|
int num_sam_entries);
|
|
void winbindd_fill_group_cache(char *domain_name,
|
|
struct acct_info *sam_entries,
|
|
int num_sam_entries);
|
|
void winbindd_fill_user_cache_entry(char *domain, char *user_name,
|
|
struct winbindd_pw *pw);
|
|
void winbindd_fill_uid_cache_entry(char *domain, uid_t uid,
|
|
struct winbindd_pw *pw);
|
|
void winbindd_fill_group_cache_entry(char *domain, char *group_name,
|
|
struct winbindd_gr *gr, void *extra_data,
|
|
int extra_data_len);
|
|
void winbindd_fill_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 acct_info **sam_entries,
|
|
int *num_entries);
|
|
BOOL winbindd_fetch_group_cache(char *domain_name,
|
|
struct acct_info **sam_entries,
|
|
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);
|
|
|
|
/*The following definitions come from nsswitch/winbindd_group.c */
|
|
|
|
enum winbindd_result winbindd_getgrnam_from_group(struct winbindd_cli_state *state);
|
|
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);
|
|
|
|
/*The following definitions come from nsswitch/winbindd_idmap.c */
|
|
|
|
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);
|
|
|
|
/*The following definitions come from nsswitch/winbindd_pam.c */
|
|
|
|
enum winbindd_result winbindd_pam_auth(struct winbindd_cli_state *state) ;
|
|
|
|
/*The following definitions come from nsswitch/winbindd_user.c */
|
|
|
|
enum winbindd_result winbindd_getpwnam_from_user(struct winbindd_cli_state *state) ;
|
|
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);
|
|
|
|
/*The following definitions come from nsswitch/winbindd_util.c */
|
|
|
|
BOOL domain_handles_open(struct winbindd_domain *domain);
|
|
void establish_connections(void) ;
|
|
BOOL lookup_domain_sid(char *domain_name, struct winbindd_domain *domain);
|
|
BOOL get_domain_info(struct winbindd_domain *domain);
|
|
BOOL winbindd_lookup_sid_by_name(struct winbindd_domain *domain,
|
|
char *name, DOM_SID *sid,
|
|
enum SID_NAME_USE *type);
|
|
BOOL winbindd_lookup_name_by_sid(struct winbindd_domain *domain,
|
|
DOM_SID *sid, char *name,
|
|
enum SID_NAME_USE *type);
|
|
BOOL winbindd_lookup_userinfo(struct winbindd_domain *domain,
|
|
uint32 user_rid, SAM_USERINFO_CTR *user_info);
|
|
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);
|
|
int winbindd_lookup_aliasmem(struct winbindd_domain *domain,
|
|
uint32 alias_rid, uint32 *num_names,
|
|
DOM_SID ***sids, char ***names,
|
|
enum SID_NAME_USE **name_types);
|
|
struct winbindd_domain *find_domain_from_name(char *domain_name);
|
|
void free_getent_state(struct getent_state *state);
|
|
BOOL winbindd_param_init(void);
|
|
char *winbindd_cmd_to_string(enum winbindd_cmd cmd);
|
|
void parse_domain_user(char *domuser, fstring domain, fstring user);
|
|
uint32 domain_sequence_number(char *domain_name);
|
|
#endif /* _WINBINDD_PROTO_H_ */
|