1 #ifndef _WINBINDD_PROTO_H_
2 #define _WINBINDD_PROTO_H_
3 /* This file is automatically generated with "make proto". DO NOT EDIT */
6 /* The following definitions come from nsswitch/winbindd.c */
8 int main(int argc
, char **argv
);
10 /* The following definitions come from nsswitch/winbindd_ads.c */
12 ADS_STATUS
ads_do_search_retry(ADS_STRUCT
*ads
, const char *bind_path
, int scope
,
14 const char **attrs
, void **res
);
15 ADS_STATUS
ads_search_retry(ADS_STRUCT
*ads
, void **res
,
18 ADS_STATUS
ads_search_retry_dn(ADS_STRUCT
*ads
, void **res
,
22 /* The following definitions come from nsswitch/winbindd_cache.c */
24 void wcache_flush_cache(void);
25 struct cache_entry
*centry_start(struct winbindd_domain
*domain
, NTSTATUS status
);
27 /* The following definitions come from nsswitch/winbindd_cm.c */
29 void cm_init_creds(struct ntuser_creds
*creds
);
30 CLI_POLICY_HND
*cm_get_lsa_handle(char *domain
);
31 CLI_POLICY_HND
*cm_get_sam_handle(char *domain
);
32 CLI_POLICY_HND
*cm_get_sam_dom_handle(char *domain
, DOM_SID
*domain_sid
);
33 CLI_POLICY_HND
*cm_get_sam_user_handle(char *domain
, DOM_SID
*domain_sid
,
35 CLI_POLICY_HND
*cm_get_sam_group_handle(char *domain
, DOM_SID
*domain_sid
,
37 NTSTATUS
cm_get_netlogon_cli(char *domain
, unsigned char *trust_passwd
,
38 struct cli_state
**cli
);
39 void winbindd_cm_status(void);
41 /* The following definitions come from nsswitch/winbindd_group.c */
43 enum winbindd_result
winbindd_getgrnam_from_group(struct winbindd_cli_state
*state
);
44 enum winbindd_result
winbindd_getgrnam_from_gid(struct winbindd_cli_state
46 enum winbindd_result
winbindd_setgrent(struct winbindd_cli_state
*state
);
47 enum winbindd_result
winbindd_endgrent(struct winbindd_cli_state
*state
);
48 enum winbindd_result
winbindd_getgrent(struct winbindd_cli_state
*state
);
49 enum winbindd_result
winbindd_list_groups(struct winbindd_cli_state
*state
);
50 enum winbindd_result
winbindd_getgroups(struct winbindd_cli_state
*state
);
52 /* The following definitions come from nsswitch/winbindd_idmap.c */
54 BOOL
winbindd_idmap_get_uid_from_rid(char *domain_name
, uint32 user_rid
,
56 BOOL
winbindd_idmap_get_gid_from_rid(char *domain_name
, uint32 group_rid
,
58 BOOL
get_rid_from_id(int id
, uint32
*rid
, struct winbindd_domain
**domain
,
60 BOOL
winbindd_idmap_get_rid_from_uid(uid_t uid
, uint32
*user_rid
,
61 struct winbindd_domain
**domain
);
62 BOOL
winbindd_idmap_get_rid_from_gid(gid_t gid
, uint32
*group_rid
,
63 struct winbindd_domain
**domain
);
64 BOOL
winbindd_idmap_init(void);
65 void winbindd_idmap_status(void);
67 /* The following definitions come from nsswitch/winbindd_misc.c */
69 enum winbindd_result
winbindd_check_machine_acct(struct winbindd_cli_state
*state
);
70 enum winbindd_result
winbindd_list_trusted_domains(struct winbindd_cli_state
73 /* The following definitions come from nsswitch/winbindd_pam.c */
75 enum winbindd_result
winbindd_pam_auth(struct winbindd_cli_state
*state
) ;
76 enum winbindd_result
winbindd_pam_auth_crap(struct winbindd_cli_state
*state
) ;
77 enum winbindd_result
winbindd_pam_chauthtok(struct winbindd_cli_state
*state
);
79 /* The following definitions come from nsswitch/winbindd_rpc.c */
82 /* The following definitions come from nsswitch/winbindd_sid.c */
84 enum winbindd_result
winbindd_lookupsid(struct winbindd_cli_state
*state
);
85 enum winbindd_result
winbindd_lookupname(struct winbindd_cli_state
*state
);
86 enum winbindd_result
winbindd_sid_to_uid(struct winbindd_cli_state
*state
);
87 enum winbindd_result
winbindd_sid_to_gid(struct winbindd_cli_state
*state
);
88 enum winbindd_result
winbindd_uid_to_sid(struct winbindd_cli_state
*state
);
89 enum winbindd_result
winbindd_gid_to_sid(struct winbindd_cli_state
*state
);
91 /* The following definitions come from nsswitch/winbindd_user.c */
93 enum winbindd_result
winbindd_getpwnam_from_user(struct winbindd_cli_state
*state
) ;
94 enum winbindd_result
winbindd_getpwnam_from_uid(struct winbindd_cli_state
*state
);
95 enum winbindd_result
winbindd_setpwent(struct winbindd_cli_state
*state
);
96 enum winbindd_result
winbindd_endpwent(struct winbindd_cli_state
*state
);
97 enum winbindd_result
winbindd_getpwent(struct winbindd_cli_state
*state
);
98 enum winbindd_result
winbindd_list_users(struct winbindd_cli_state
*state
);
100 /* The following definitions come from nsswitch/winbindd_util.c */
102 struct winbindd_domain
*find_domain_from_name(char *domain_name
);
103 struct winbindd_domain
*find_domain_from_sid(DOM_SID
*sid
);
104 BOOL
get_domain_info(void);
105 BOOL
winbindd_lookup_sid_by_name(struct winbindd_domain
*domain
,
106 const char *name
, DOM_SID
*sid
, enum SID_NAME_USE
*type
);
107 BOOL
winbindd_lookup_name_by_sid(DOM_SID
*sid
,
109 enum SID_NAME_USE
*type
);
110 void free_getent_state(struct getent_state
*state
);
111 BOOL
winbindd_param_init(void);
112 BOOL
check_domain_env(char *domain_env
, char *domain
);
113 BOOL
parse_domain_user(const char *domuser
, fstring domain
, fstring user
);
114 #endif /* _PROTO_H_ */