1 | #ifndef _WINBINDD_PROTO_H_
|
---|
2 | #define _WINBINDD_PROTO_H_
|
---|
3 |
|
---|
4 | /* This file is automatically generated with "make proto". DO NOT EDIT */
|
---|
5 |
|
---|
6 |
|
---|
7 | /* The following definitions come from auth/token_util.c */
|
---|
8 |
|
---|
9 | bool nt_token_check_sid ( const DOM_SID *sid, const NT_USER_TOKEN *token );
|
---|
10 | bool nt_token_check_domain_rid( NT_USER_TOKEN *token, uint32 rid );
|
---|
11 | NT_USER_TOKEN *get_root_nt_token( void );
|
---|
12 | NTSTATUS add_aliases(const DOM_SID *domain_sid,
|
---|
13 | struct nt_user_token *token);
|
---|
14 | struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx,
|
---|
15 | const DOM_SID *user_sid,
|
---|
16 | bool is_guest,
|
---|
17 | int num_groupsids,
|
---|
18 | const DOM_SID *groupsids);
|
---|
19 | void debug_nt_user_token(int dbg_class, int dbg_lev, NT_USER_TOKEN *token);
|
---|
20 | void debug_unix_user_token(int dbg_class, int dbg_lev, uid_t uid, gid_t gid,
|
---|
21 | int n_groups, gid_t *groups);
|
---|
22 |
|
---|
23 | /* The following definitions come from smbd/connection.c */
|
---|
24 |
|
---|
25 | bool yield_connection(connection_struct *conn, const char *name);
|
---|
26 | int count_current_connections( const char *sharename, bool clear );
|
---|
27 | int count_all_current_connections(void);
|
---|
28 | bool claim_connection(connection_struct *conn, const char *name,
|
---|
29 | uint32 msg_flags);
|
---|
30 | bool register_message_flags(bool doreg, uint32 msg_flags);
|
---|
31 | bool store_pipe_opendb( smb_np_struct *p );
|
---|
32 | bool delete_pipe_opendb( smb_np_struct *p );
|
---|
33 |
|
---|
34 | /* The following definitions come from winbindd/winbindd.c */
|
---|
35 |
|
---|
36 | struct event_context *winbind_event_context(void);
|
---|
37 | struct messaging_context *winbind_messaging_context(void);
|
---|
38 | void add_fd_event(struct fd_event *ev);
|
---|
39 | void remove_fd_event(struct fd_event *ev);
|
---|
40 | void setup_async_read(struct fd_event *event, void *data, size_t length,
|
---|
41 | void (*finished)(void *private_data, bool success),
|
---|
42 | void *private_data);
|
---|
43 | void setup_async_write(struct fd_event *event, void *data, size_t length,
|
---|
44 | void (*finished)(void *private_data, bool success),
|
---|
45 | void *private_data);
|
---|
46 | void request_error(struct winbindd_cli_state *state);
|
---|
47 | void request_ok(struct winbindd_cli_state *state);
|
---|
48 | void request_finished_cont(void *private_data, bool success);
|
---|
49 | void winbind_check_sighup(const char *logfile);
|
---|
50 | void winbind_check_sigterm(bool is_parent);
|
---|
51 | int main(int argc, char **argv, char **envp);
|
---|
52 |
|
---|
53 | /* The following definitions come from winbindd/winbindd_ads.c */
|
---|
54 |
|
---|
55 |
|
---|
56 | /* The following definitions come from winbindd/winbindd_async.c */
|
---|
57 |
|
---|
58 | void do_async(TALLOC_CTX *mem_ctx, struct winbindd_child *child,
|
---|
59 | const struct winbindd_request *request,
|
---|
60 | void (*cont)(TALLOC_CTX *mem_ctx, bool success,
|
---|
61 | struct winbindd_response *response,
|
---|
62 | void *c, void *private_data),
|
---|
63 | void *c, void *private_data);
|
---|
64 | void do_async_domain(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain,
|
---|
65 | const struct winbindd_request *request,
|
---|
66 | void (*cont)(TALLOC_CTX *mem_ctx, bool success,
|
---|
67 | struct winbindd_response *response,
|
---|
68 | void *c, void *private_data),
|
---|
69 | void *c, void *private_data);
|
---|
70 | void winbindd_lookupsid_async(TALLOC_CTX *mem_ctx, const DOM_SID *sid,
|
---|
71 | void (*cont)(void *private_data, bool success,
|
---|
72 | const char *dom_name,
|
---|
73 | const char *name,
|
---|
74 | enum lsa_SidType type),
|
---|
75 | void *private_data);
|
---|
76 | enum winbindd_result winbindd_dual_lookupsid(struct winbindd_domain *domain,
|
---|
77 | struct winbindd_cli_state *state);
|
---|
78 | void winbindd_lookupname_async(TALLOC_CTX *mem_ctx,
|
---|
79 | const char *dom_name, const char *name,
|
---|
80 | void (*cont)(void *private_data, bool success,
|
---|
81 | const DOM_SID *sid,
|
---|
82 | enum lsa_SidType type),
|
---|
83 | enum winbindd_cmd orig_cmd,
|
---|
84 | void *private_data);
|
---|
85 | enum winbindd_result winbindd_dual_lookupname(struct winbindd_domain *domain,
|
---|
86 | struct winbindd_cli_state *state);
|
---|
87 | void winbindd_listent_async(TALLOC_CTX *mem_ctx,
|
---|
88 | struct winbindd_domain *domain,
|
---|
89 | void (*cont)(void *private_data, bool success,
|
---|
90 | fstring dom_name, char* extra_data),
|
---|
91 | void *private_data, enum ent_type type);
|
---|
92 | enum winbindd_result winbindd_dual_list_users(struct winbindd_domain *domain,
|
---|
93 | struct winbindd_cli_state *state);
|
---|
94 | enum winbindd_result winbindd_dual_list_groups(struct winbindd_domain *domain,
|
---|
95 | struct winbindd_cli_state *state);
|
---|
96 | bool print_sidlist(TALLOC_CTX *mem_ctx, const DOM_SID *sids,
|
---|
97 | size_t num_sids, char **result, ssize_t *len);
|
---|
98 | enum winbindd_result winbindd_dual_lookuprids(struct winbindd_domain *domain,
|
---|
99 | struct winbindd_cli_state *state);
|
---|
100 | void winbindd_getsidaliases_async(struct winbindd_domain *domain,
|
---|
101 | TALLOC_CTX *mem_ctx,
|
---|
102 | const DOM_SID *sids, size_t num_sids,
|
---|
103 | void (*cont)(void *private_data,
|
---|
104 | bool success,
|
---|
105 | const DOM_SID *aliases,
|
---|
106 | size_t num_aliases),
|
---|
107 | void *private_data);
|
---|
108 | enum winbindd_result winbindd_dual_getsidaliases(struct winbindd_domain *domain,
|
---|
109 | struct winbindd_cli_state *state);
|
---|
110 | void winbindd_gettoken_async(TALLOC_CTX *mem_ctx, const DOM_SID *user_sid,
|
---|
111 | void (*cont)(void *private_data, bool success,
|
---|
112 | DOM_SID *sids, size_t num_sids),
|
---|
113 | void *private_data);
|
---|
114 | void query_user_async(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain,
|
---|
115 | const DOM_SID *sid,
|
---|
116 | void (*cont)(void *private_data, bool success,
|
---|
117 | const char *acct_name,
|
---|
118 | const char *full_name,
|
---|
119 | const char *homedir,
|
---|
120 | const char *shell,
|
---|
121 | gid_t gid,
|
---|
122 | uint32 group_rid),
|
---|
123 | void *private_data);
|
---|
124 |
|
---|
125 | /* The following definitions come from winbindd/winbindd_cache.c */
|
---|
126 |
|
---|
127 | void winbindd_check_cache_size(time_t t);
|
---|
128 | struct cache_entry *centry_start(struct winbindd_domain *domain, NTSTATUS status);
|
---|
129 | NTSTATUS wcache_cached_creds_exist(struct winbindd_domain *domain, const DOM_SID *sid);
|
---|
130 | NTSTATUS wcache_get_creds(struct winbindd_domain *domain,
|
---|
131 | TALLOC_CTX *mem_ctx,
|
---|
132 | const DOM_SID *sid,
|
---|
133 | const uint8 **cached_nt_pass,
|
---|
134 | const uint8 **cached_salt);
|
---|
135 | NTSTATUS wcache_save_creds(struct winbindd_domain *domain,
|
---|
136 | TALLOC_CTX *mem_ctx,
|
---|
137 | const DOM_SID *sid,
|
---|
138 | const uint8 nt_pass[NT_HASH_LEN]);
|
---|
139 | void wcache_invalidate_samlogon(struct winbindd_domain *domain,
|
---|
140 | struct netr_SamInfo3 *info3);
|
---|
141 | bool wcache_invalidate_cache(void);
|
---|
142 | bool init_wcache(void);
|
---|
143 | bool initialize_winbindd_cache(void);
|
---|
144 | void close_winbindd_cache(void);
|
---|
145 | void cache_store_response(pid_t pid, struct winbindd_response *response);
|
---|
146 | bool cache_retrieve_response(pid_t pid, struct winbindd_response * response);
|
---|
147 | void cache_cleanup_response(pid_t pid);
|
---|
148 | bool lookup_cached_sid(TALLOC_CTX *mem_ctx, const DOM_SID *sid,
|
---|
149 | char **domain_name, char **name,
|
---|
150 | enum lsa_SidType *type);
|
---|
151 | bool lookup_cached_name(TALLOC_CTX *mem_ctx,
|
---|
152 | const char *domain_name,
|
---|
153 | const char *name,
|
---|
154 | DOM_SID *sid,
|
---|
155 | enum lsa_SidType *type);
|
---|
156 | void cache_name2sid(struct winbindd_domain *domain,
|
---|
157 | const char *domain_name, const char *name,
|
---|
158 | enum lsa_SidType type, const DOM_SID *sid);
|
---|
159 | void wcache_flush_cache(void);
|
---|
160 | NTSTATUS wcache_count_cached_creds(struct winbindd_domain *domain, int *count);
|
---|
161 | NTSTATUS wcache_remove_oldest_cached_creds(struct winbindd_domain *domain, const DOM_SID *sid) ;
|
---|
162 | bool set_global_winbindd_state_offline(void);
|
---|
163 | void set_global_winbindd_state_online(void);
|
---|
164 | bool get_global_winbindd_state_offline(void);
|
---|
165 | int winbindd_validate_cache(void);
|
---|
166 | int winbindd_validate_cache_nobackup(void);
|
---|
167 | bool winbindd_cache_validate_and_initialize(void);
|
---|
168 | bool wcache_tdc_fetch_list( struct winbindd_tdc_domain **domains, size_t *num_domains );
|
---|
169 | bool wcache_tdc_add_domain( struct winbindd_domain *domain );
|
---|
170 | struct winbindd_tdc_domain * wcache_tdc_fetch_domain( TALLOC_CTX *ctx, const char *name );
|
---|
171 | void wcache_tdc_clear( void );
|
---|
172 | NTSTATUS nss_get_info_cached( struct winbindd_domain *domain,
|
---|
173 | const DOM_SID *user_sid,
|
---|
174 | TALLOC_CTX *ctx,
|
---|
175 | ADS_STRUCT *ads, LDAPMessage *msg,
|
---|
176 | char **homedir, char **shell, char **gecos,
|
---|
177 | gid_t *p_gid);
|
---|
178 |
|
---|
179 | /* The following definitions come from winbindd/winbindd_ccache_access.c */
|
---|
180 |
|
---|
181 | void winbindd_ccache_ntlm_auth(struct winbindd_cli_state *state);
|
---|
182 | enum winbindd_result winbindd_dual_ccache_ntlm_auth(struct winbindd_domain *domain,
|
---|
183 | struct winbindd_cli_state *state);
|
---|
184 |
|
---|
185 | /* The following definitions come from winbindd/winbindd_cm.c */
|
---|
186 |
|
---|
187 | void set_domain_offline(struct winbindd_domain *domain);
|
---|
188 | void set_domain_online_request(struct winbindd_domain *domain);
|
---|
189 | void winbind_add_failed_connection_entry(const struct winbindd_domain *domain,
|
---|
190 | const char *server,
|
---|
191 | NTSTATUS result);
|
---|
192 | void invalidate_cm_connection(struct winbindd_cm_conn *conn);
|
---|
193 | void close_conns_after_fork(void);
|
---|
194 | NTSTATUS init_dc_connection(struct winbindd_domain *domain);
|
---|
195 | NTSTATUS cm_connect_sam(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx,
|
---|
196 | struct rpc_pipe_client **cli, POLICY_HND *sam_handle);
|
---|
197 | NTSTATUS cm_connect_lsa(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx,
|
---|
198 | struct rpc_pipe_client **cli, POLICY_HND *lsa_policy);
|
---|
199 | NTSTATUS cm_connect_netlogon(struct winbindd_domain *domain,
|
---|
200 | struct rpc_pipe_client **cli);
|
---|
201 |
|
---|
202 | /* The following definitions come from winbindd/winbindd_cred_cache.c */
|
---|
203 |
|
---|
204 | void ccache_remove_all_after_fork(void);
|
---|
205 | void ccache_regain_all_now(void);
|
---|
206 | bool ccache_entry_exists(const char *username);
|
---|
207 | bool ccache_entry_identical(const char *username,
|
---|
208 | uid_t uid,
|
---|
209 | const char *ccname);
|
---|
210 | NTSTATUS add_ccache_to_list(const char *princ_name,
|
---|
211 | const char *ccname,
|
---|
212 | const char *service,
|
---|
213 | const char *username,
|
---|
214 | const char *realm,
|
---|
215 | uid_t uid,
|
---|
216 | time_t create_time,
|
---|
217 | time_t ticket_end,
|
---|
218 | time_t renew_until,
|
---|
219 | bool postponed_request);
|
---|
220 | NTSTATUS remove_ccache(const char *username);
|
---|
221 | struct WINBINDD_MEMORY_CREDS *find_memory_creds_by_name(const char *username);
|
---|
222 | NTSTATUS winbindd_add_memory_creds(const char *username,
|
---|
223 | uid_t uid,
|
---|
224 | const char *pass);
|
---|
225 | NTSTATUS winbindd_delete_memory_creds(const char *username);
|
---|
226 | NTSTATUS winbindd_replace_memory_creds(const char *username,
|
---|
227 | const char *pass);
|
---|
228 |
|
---|
229 | /* The following definitions come from winbindd/winbindd_creds.c */
|
---|
230 |
|
---|
231 | NTSTATUS winbindd_get_creds(struct winbindd_domain *domain,
|
---|
232 | TALLOC_CTX *mem_ctx,
|
---|
233 | const DOM_SID *sid,
|
---|
234 | struct netr_SamInfo3 **info3,
|
---|
235 | const uint8 *cached_nt_pass[NT_HASH_LEN],
|
---|
236 | const uint8 *cred_salt[NT_HASH_LEN]);
|
---|
237 | NTSTATUS winbindd_store_creds(struct winbindd_domain *domain,
|
---|
238 | TALLOC_CTX *mem_ctx,
|
---|
239 | const char *user,
|
---|
240 | const char *pass,
|
---|
241 | struct netr_SamInfo3 *info3,
|
---|
242 | const DOM_SID *user_sid);
|
---|
243 | NTSTATUS winbindd_update_creds_by_info3(struct winbindd_domain *domain,
|
---|
244 | TALLOC_CTX *mem_ctx,
|
---|
245 | const char *user,
|
---|
246 | const char *pass,
|
---|
247 | struct netr_SamInfo3 *info3);
|
---|
248 | NTSTATUS winbindd_update_creds_by_sid(struct winbindd_domain *domain,
|
---|
249 | TALLOC_CTX *mem_ctx,
|
---|
250 | const DOM_SID *sid,
|
---|
251 | const char *pass);
|
---|
252 | NTSTATUS winbindd_update_creds_by_name(struct winbindd_domain *domain,
|
---|
253 | TALLOC_CTX *mem_ctx,
|
---|
254 | const char *user,
|
---|
255 | const char *pass);
|
---|
256 |
|
---|
257 | /* The following definitions come from winbindd/winbindd_domain.c */
|
---|
258 |
|
---|
259 | void setup_domain_child(struct winbindd_domain *domain,
|
---|
260 | struct winbindd_child *child);
|
---|
261 |
|
---|
262 | /* The following definitions come from winbindd/winbindd_dual.c */
|
---|
263 |
|
---|
264 | void async_request(TALLOC_CTX *mem_ctx, struct winbindd_child *child,
|
---|
265 | struct winbindd_request *request,
|
---|
266 | struct winbindd_response *response,
|
---|
267 | void (*continuation)(void *private_data, bool success),
|
---|
268 | void *private_data);
|
---|
269 | void async_domain_request(TALLOC_CTX *mem_ctx,
|
---|
270 | struct winbindd_domain *domain,
|
---|
271 | struct winbindd_request *request,
|
---|
272 | struct winbindd_response *response,
|
---|
273 | void (*continuation)(void *private_data_data, bool success),
|
---|
274 | void *private_data_data);
|
---|
275 | void sendto_child(struct winbindd_cli_state *state,
|
---|
276 | struct winbindd_child *child);
|
---|
277 | void sendto_domain(struct winbindd_cli_state *state,
|
---|
278 | struct winbindd_domain *domain);
|
---|
279 | void setup_child(struct winbindd_child *child,
|
---|
280 | const struct winbindd_child_dispatch_table *table,
|
---|
281 | const char *logprefix,
|
---|
282 | const char *logname);
|
---|
283 | void winbind_child_died(pid_t pid);
|
---|
284 | void winbindd_flush_negative_conn_cache(struct winbindd_domain *domain);
|
---|
285 | void winbind_msg_debug(struct messaging_context *msg_ctx,
|
---|
286 | void *private_data,
|
---|
287 | uint32_t msg_type,
|
---|
288 | struct server_id server_id,
|
---|
289 | DATA_BLOB *data);
|
---|
290 | void winbind_msg_offline(struct messaging_context *msg_ctx,
|
---|
291 | void *private_data,
|
---|
292 | uint32_t msg_type,
|
---|
293 | struct server_id server_id,
|
---|
294 | DATA_BLOB *data);
|
---|
295 | void winbind_msg_online(struct messaging_context *msg_ctx,
|
---|
296 | void *private_data,
|
---|
297 | uint32_t msg_type,
|
---|
298 | struct server_id server_id,
|
---|
299 | DATA_BLOB *data);
|
---|
300 | void winbind_msg_onlinestatus(struct messaging_context *msg_ctx,
|
---|
301 | void *private_data,
|
---|
302 | uint32_t msg_type,
|
---|
303 | struct server_id server_id,
|
---|
304 | DATA_BLOB *data);
|
---|
305 | void winbind_msg_dump_event_list(struct messaging_context *msg_ctx,
|
---|
306 | void *private_data,
|
---|
307 | uint32_t msg_type,
|
---|
308 | struct server_id server_id,
|
---|
309 | DATA_BLOB *data);
|
---|
310 | void winbind_msg_dump_domain_list(struct messaging_context *msg_ctx,
|
---|
311 | void *private_data,
|
---|
312 | uint32_t msg_type,
|
---|
313 | struct server_id server_id,
|
---|
314 | DATA_BLOB *data);
|
---|
315 | bool winbindd_reinit_after_fork(const char *logfilename);
|
---|
316 |
|
---|
317 | /* The following definitions come from winbindd/winbindd_group.c */
|
---|
318 |
|
---|
319 | void winbindd_getgrnam(struct winbindd_cli_state *state);
|
---|
320 | void winbindd_getgrgid(struct winbindd_cli_state *state);
|
---|
321 | void winbindd_setgrent(struct winbindd_cli_state *state);
|
---|
322 | void winbindd_endgrent(struct winbindd_cli_state *state);
|
---|
323 | bool get_sam_group_entries(struct getent_state *ent);
|
---|
324 | void winbindd_getgrent(struct winbindd_cli_state *state);
|
---|
325 | void winbindd_list_groups(struct winbindd_cli_state *state);
|
---|
326 | void winbindd_getgroups(struct winbindd_cli_state *state);
|
---|
327 | void winbindd_getusersids(struct winbindd_cli_state *state);
|
---|
328 | void winbindd_getuserdomgroups(struct winbindd_cli_state *state);
|
---|
329 | enum winbindd_result winbindd_dual_getuserdomgroups(struct winbindd_domain *domain,
|
---|
330 | struct winbindd_cli_state *state);
|
---|
331 |
|
---|
332 | /* The following definitions come from winbindd/winbindd_idmap.c */
|
---|
333 |
|
---|
334 | void init_idmap_child(void);
|
---|
335 | struct winbindd_child *idmap_child(void);
|
---|
336 | void winbindd_set_mapping_async(TALLOC_CTX *mem_ctx, const struct id_map *map,
|
---|
337 | void (*cont)(void *private_data, bool success),
|
---|
338 | void *private_data);
|
---|
339 | enum winbindd_result winbindd_dual_set_mapping(struct winbindd_domain *domain,
|
---|
340 | struct winbindd_cli_state *state);
|
---|
341 | void winbindd_set_hwm_async(TALLOC_CTX *mem_ctx, const struct unixid *xid,
|
---|
342 | void (*cont)(void *private_data, bool success),
|
---|
343 | void *private_data);
|
---|
344 | enum winbindd_result winbindd_dual_set_hwm(struct winbindd_domain *domain,
|
---|
345 | struct winbindd_cli_state *state);
|
---|
346 | void winbindd_sids2xids_async(TALLOC_CTX *mem_ctx, void *sids, int size,
|
---|
347 | void (*cont)(void *private_data, bool success, void *data, int len),
|
---|
348 | void *private_data);
|
---|
349 | enum winbindd_result winbindd_dual_sids2xids(struct winbindd_domain *domain,
|
---|
350 | struct winbindd_cli_state *state);
|
---|
351 | void winbindd_sid2uid_async(TALLOC_CTX *mem_ctx, const DOM_SID *sid,
|
---|
352 | void (*cont)(void *private_data, bool success, uid_t uid),
|
---|
353 | void *private_data);
|
---|
354 | enum winbindd_result winbindd_dual_sid2uid(struct winbindd_domain *domain,
|
---|
355 | struct winbindd_cli_state *state);
|
---|
356 | void winbindd_sid2gid_async(TALLOC_CTX *mem_ctx, const DOM_SID *sid,
|
---|
357 | void (*cont)(void *private_data, bool success, gid_t gid),
|
---|
358 | void *private_data);
|
---|
359 | enum winbindd_result winbindd_dual_sid2gid(struct winbindd_domain *domain,
|
---|
360 | struct winbindd_cli_state *state);
|
---|
361 | void winbindd_uid2sid_async(TALLOC_CTX *mem_ctx, uid_t uid,
|
---|
362 | void (*cont)(void *private_data, bool success, const char *sid),
|
---|
363 | void *private_data);
|
---|
364 | enum winbindd_result winbindd_dual_uid2sid(struct winbindd_domain *domain,
|
---|
365 | struct winbindd_cli_state *state);
|
---|
366 | void winbindd_gid2sid_async(TALLOC_CTX *mem_ctx, gid_t gid,
|
---|
367 | void (*cont)(void *private_data, bool success, const char *sid),
|
---|
368 | void *private_data);
|
---|
369 | enum winbindd_result winbindd_dual_gid2sid(struct winbindd_domain *domain,
|
---|
370 | struct winbindd_cli_state *state);
|
---|
371 |
|
---|
372 | /* The following definitions come from winbindd/winbindd_locator.c */
|
---|
373 |
|
---|
374 | void init_locator_child(void);
|
---|
375 | struct winbindd_child *locator_child(void);
|
---|
376 | void winbindd_dsgetdcname(struct winbindd_cli_state *state);
|
---|
377 |
|
---|
378 | /* The following definitions come from winbindd/winbindd_misc.c */
|
---|
379 |
|
---|
380 | void winbindd_check_machine_acct(struct winbindd_cli_state *state);
|
---|
381 | enum winbindd_result winbindd_dual_check_machine_acct(struct winbindd_domain *domain,
|
---|
382 | struct winbindd_cli_state *state);
|
---|
383 | void winbindd_list_ent(struct winbindd_cli_state *state, enum ent_type type);
|
---|
384 | void winbindd_list_trusted_domains(struct winbindd_cli_state *state);
|
---|
385 | enum winbindd_result winbindd_dual_list_trusted_domains(struct winbindd_domain *domain,
|
---|
386 | struct winbindd_cli_state *state);
|
---|
387 | void winbindd_getdcname(struct winbindd_cli_state *state);
|
---|
388 | enum winbindd_result winbindd_dual_getdcname(struct winbindd_domain *domain,
|
---|
389 | struct winbindd_cli_state *state);
|
---|
390 | void winbindd_show_sequence(struct winbindd_cli_state *state);
|
---|
391 | enum winbindd_result winbindd_dual_show_sequence(struct winbindd_domain *domain,
|
---|
392 | struct winbindd_cli_state *state);
|
---|
393 | void winbindd_domain_info(struct winbindd_cli_state *state);
|
---|
394 | void winbindd_ping(struct winbindd_cli_state *state);
|
---|
395 | void winbindd_info(struct winbindd_cli_state *state);
|
---|
396 | void winbindd_interface_version(struct winbindd_cli_state *state);
|
---|
397 | void winbindd_domain_name(struct winbindd_cli_state *state);
|
---|
398 | void winbindd_netbios_name(struct winbindd_cli_state *state);
|
---|
399 | void winbindd_priv_pipe_dir(struct winbindd_cli_state *state);
|
---|
400 |
|
---|
401 | /* The following definitions come from winbindd/winbindd_ndr.c */
|
---|
402 |
|
---|
403 | void ndr_print_winbindd_child(struct ndr_print *ndr,
|
---|
404 | const char *name,
|
---|
405 | const struct winbindd_child *r);
|
---|
406 | void ndr_print_winbindd_cm_conn(struct ndr_print *ndr,
|
---|
407 | const char *name,
|
---|
408 | const struct winbindd_cm_conn *r);
|
---|
409 | void ndr_print_winbindd_methods(struct ndr_print *ndr,
|
---|
410 | const char *name,
|
---|
411 | const struct winbindd_methods *r);
|
---|
412 | void ndr_print_winbindd_domain(struct ndr_print *ndr,
|
---|
413 | const char *name,
|
---|
414 | const struct winbindd_domain *r);
|
---|
415 |
|
---|
416 | /* The following definitions come from winbindd/winbindd_pam.c */
|
---|
417 |
|
---|
418 | struct winbindd_domain *find_auth_domain(struct winbindd_cli_state *state,
|
---|
419 | const char *domain_name);
|
---|
420 | void winbindd_pam_auth(struct winbindd_cli_state *state);
|
---|
421 | NTSTATUS winbindd_dual_pam_auth_cached(struct winbindd_domain *domain,
|
---|
422 | struct winbindd_cli_state *state,
|
---|
423 | struct netr_SamInfo3 **info3);
|
---|
424 | NTSTATUS winbindd_dual_pam_auth_kerberos(struct winbindd_domain *domain,
|
---|
425 | struct winbindd_cli_state *state,
|
---|
426 | struct netr_SamInfo3 **info3);
|
---|
427 | NTSTATUS winbindd_dual_pam_auth_samlogon(struct winbindd_domain *domain,
|
---|
428 | struct winbindd_cli_state *state,
|
---|
429 | struct netr_SamInfo3 **info3);
|
---|
430 | enum winbindd_result winbindd_dual_pam_auth(struct winbindd_domain *domain,
|
---|
431 | struct winbindd_cli_state *state) ;
|
---|
432 | void winbindd_pam_auth_crap(struct winbindd_cli_state *state);
|
---|
433 | enum winbindd_result winbindd_dual_pam_auth_crap(struct winbindd_domain *domain,
|
---|
434 | struct winbindd_cli_state *state) ;
|
---|
435 | void winbindd_pam_chauthtok(struct winbindd_cli_state *state);
|
---|
436 | enum winbindd_result winbindd_dual_pam_chauthtok(struct winbindd_domain *contact_domain,
|
---|
437 | struct winbindd_cli_state *state);
|
---|
438 | void winbindd_pam_logoff(struct winbindd_cli_state *state);
|
---|
439 | enum winbindd_result winbindd_dual_pam_logoff(struct winbindd_domain *domain,
|
---|
440 | struct winbindd_cli_state *state) ;
|
---|
441 | void winbindd_pam_chng_pswd_auth_crap(struct winbindd_cli_state *state);
|
---|
442 | enum winbindd_result winbindd_dual_pam_chng_pswd_auth_crap(struct winbindd_domain *domainSt, struct winbindd_cli_state *state);
|
---|
443 |
|
---|
444 | /* The following definitions come from winbindd/winbindd_passdb.c */
|
---|
445 |
|
---|
446 |
|
---|
447 | /* The following definitions come from winbindd/winbindd_reconnect.c */
|
---|
448 |
|
---|
449 |
|
---|
450 | /* The following definitions come from winbindd/winbindd_rpc.c */
|
---|
451 |
|
---|
452 |
|
---|
453 | /* The following definitions come from winbindd/winbindd_sid.c */
|
---|
454 |
|
---|
455 | void winbindd_lookupsid(struct winbindd_cli_state *state);
|
---|
456 | void winbindd_lookupname(struct winbindd_cli_state *state);
|
---|
457 | void winbindd_lookuprids(struct winbindd_cli_state *state);
|
---|
458 | void winbindd_sid_to_uid(struct winbindd_cli_state *state);
|
---|
459 | void winbindd_sid_to_gid(struct winbindd_cli_state *state);
|
---|
460 | void winbindd_sids_to_unixids(struct winbindd_cli_state *state);
|
---|
461 | void winbindd_set_mapping(struct winbindd_cli_state *state);
|
---|
462 | void winbindd_set_hwm(struct winbindd_cli_state *state);
|
---|
463 | void winbindd_uid_to_sid(struct winbindd_cli_state *state);
|
---|
464 | void winbindd_gid_to_sid(struct winbindd_cli_state *state);
|
---|
465 | void winbindd_allocate_uid(struct winbindd_cli_state *state);
|
---|
466 | enum winbindd_result winbindd_dual_allocate_uid(struct winbindd_domain *domain,
|
---|
467 | struct winbindd_cli_state *state);
|
---|
468 | void winbindd_allocate_gid(struct winbindd_cli_state *state);
|
---|
469 | enum winbindd_result winbindd_dual_allocate_gid(struct winbindd_domain *domain,
|
---|
470 | struct winbindd_cli_state *state);
|
---|
471 |
|
---|
472 | /* The following definitions come from winbindd/winbindd_user.c */
|
---|
473 |
|
---|
474 | enum winbindd_result winbindd_dual_userinfo(struct winbindd_domain *domain,
|
---|
475 | struct winbindd_cli_state *state);
|
---|
476 | void winbindd_getpwnam(struct winbindd_cli_state *state);
|
---|
477 | void winbindd_getpwuid(struct winbindd_cli_state *state);
|
---|
478 | void winbindd_setpwent(struct winbindd_cli_state *state);
|
---|
479 | void winbindd_endpwent(struct winbindd_cli_state *state);
|
---|
480 | void winbindd_getpwent(struct winbindd_cli_state *state);
|
---|
481 | void winbindd_list_users(struct winbindd_cli_state *state);
|
---|
482 |
|
---|
483 | /* The following definitions come from winbindd/winbindd_util.c */
|
---|
484 |
|
---|
485 | struct winbindd_domain *domain_list(void);
|
---|
486 | void free_domain_list(void);
|
---|
487 | void rescan_trusted_domains( void );
|
---|
488 | enum winbindd_result init_child_connection(struct winbindd_domain *domain,
|
---|
489 | void (*continuation)(void *private_data,
|
---|
490 | bool success),
|
---|
491 | void *private_data);
|
---|
492 | enum winbindd_result winbindd_dual_init_connection(struct winbindd_domain *domain,
|
---|
493 | struct winbindd_cli_state *state);
|
---|
494 | bool init_domain_list(void);
|
---|
495 | void check_domain_trusted( const char *name, const DOM_SID *user_sid );
|
---|
496 | struct winbindd_domain *find_domain_from_name_noinit(const char *domain_name);
|
---|
497 | struct winbindd_domain *find_domain_from_name(const char *domain_name);
|
---|
498 | struct winbindd_domain *find_domain_from_sid_noinit(const DOM_SID *sid);
|
---|
499 | struct winbindd_domain *find_domain_from_sid(const DOM_SID *sid);
|
---|
500 | struct winbindd_domain *find_our_domain(void);
|
---|
501 | struct winbindd_domain *find_root_domain(void);
|
---|
502 | struct winbindd_domain *find_builtin_domain(void);
|
---|
503 | struct winbindd_domain *find_lookup_domain_from_sid(const DOM_SID *sid);
|
---|
504 | struct winbindd_domain *find_lookup_domain_from_name(const char *domain_name);
|
---|
505 | bool winbindd_lookup_sid_by_name(TALLOC_CTX *mem_ctx,
|
---|
506 | enum winbindd_cmd orig_cmd,
|
---|
507 | struct winbindd_domain *domain,
|
---|
508 | const char *domain_name,
|
---|
509 | const char *name, DOM_SID *sid,
|
---|
510 | enum lsa_SidType *type);
|
---|
511 | bool winbindd_lookup_name_by_sid(TALLOC_CTX *mem_ctx,
|
---|
512 | struct winbindd_domain *domain,
|
---|
513 | DOM_SID *sid,
|
---|
514 | char **dom_name,
|
---|
515 | char **name,
|
---|
516 | enum lsa_SidType *type);
|
---|
517 | void free_getent_state(struct getent_state *state);
|
---|
518 | bool parse_domain_user(const char *domuser, fstring domain, fstring user);
|
---|
519 | bool parse_domain_user_talloc(TALLOC_CTX *mem_ctx, const char *domuser,
|
---|
520 | char **domain, char **user);
|
---|
521 | void parse_add_domuser(void *buf, char *domuser, int *len);
|
---|
522 | bool canonicalize_username(fstring username_inout, fstring domain, fstring user);
|
---|
523 | void fill_domain_username(fstring name, const char *domain, const char *user, bool can_assume);
|
---|
524 | char *fill_domain_username_talloc(TALLOC_CTX *mem_ctx,
|
---|
525 | const char *domain,
|
---|
526 | const char *user,
|
---|
527 | bool can_assume);
|
---|
528 | const char *get_winbind_pipe_dir(void) ;
|
---|
529 | char *get_winbind_priv_pipe_dir(void) ;
|
---|
530 | int open_winbindd_socket(void);
|
---|
531 | int open_winbindd_priv_socket(void);
|
---|
532 | void close_winbindd_socket(void);
|
---|
533 | struct winbindd_cli_state *winbindd_client_list(void);
|
---|
534 | void winbindd_add_client(struct winbindd_cli_state *cli);
|
---|
535 | void winbindd_remove_client(struct winbindd_cli_state *cli);
|
---|
536 | void winbindd_kill_all_clients(void);
|
---|
537 | int winbindd_num_clients(void);
|
---|
538 | NTSTATUS lookup_usergroups_cached(struct winbindd_domain *domain,
|
---|
539 | TALLOC_CTX *mem_ctx,
|
---|
540 | const DOM_SID *user_sid,
|
---|
541 | uint32 *p_num_groups, DOM_SID **user_sids);
|
---|
542 | void ws_name_replace( char *name, char replace );
|
---|
543 | void ws_name_return( char *name, char replace );
|
---|
544 | bool winbindd_can_contact_domain(struct winbindd_domain *domain);
|
---|
545 | bool winbindd_internal_child(struct winbindd_child *child);
|
---|
546 | void winbindd_set_locator_kdc_envs(const struct winbindd_domain *domain);
|
---|
547 | void winbindd_unset_locator_kdc_env(const struct winbindd_domain *domain);
|
---|
548 | void winbindd_set_locator_kdc_envs(const struct winbindd_domain *domain);
|
---|
549 | void winbindd_unset_locator_kdc_env(const struct winbindd_domain *domain);
|
---|
550 |
|
---|
551 | /* The following definitions come from winbindd/winbindd_wins.c */
|
---|
552 |
|
---|
553 | void winbindd_wins_byip(struct winbindd_cli_state *state);
|
---|
554 | void winbindd_wins_byname(struct winbindd_cli_state *state);
|
---|
555 |
|
---|
556 | #endif /* _WINBINDD_PROTO_H_ */
|
---|