source: vendor/current/source3/utils/net_proto.h

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 18.7 KB
Line 
1/*
2 * Unix SMB/CIFS implementation.
3 * collected prototypes header
4 *
5 * frozen from "make proto" in May 2008
6 *
7 * Copyright (C) Michael Adam 2008
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 3 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, see <http://www.gnu.org/licenses/>.
21 */
22
23#ifndef _NET_PROTO_H_
24#define _NET_PROTO_H_
25
26#include "libads/ads_status.h"
27
28/* The following definitions come from utils/net.c */
29
30enum netr_SchannelType get_sec_channel_type(const char *param);
31
32/* The following definitions come from utils/net_ads.c */
33struct ads_struct;
34ADS_STATUS ads_startup(struct net_context *c, bool only_own_domain, struct ads_struct **ads);
35ADS_STATUS ads_startup_nobind(struct net_context *c, bool only_own_domain, struct ads_struct **ads);
36int net_ads_check_our_domain(struct net_context *c);
37int net_ads_check(struct net_context *c);
38int net_ads_user(struct net_context *c, int argc, const char **argv);
39int net_ads_group(struct net_context *c, int argc, const char **argv);
40int net_ads_testjoin(struct net_context *c, int argc, const char **argv);
41int net_ads_join(struct net_context *c, int argc, const char **argv);
42int net_ads_printer_usage(struct net_context *c, int argc, const char **argv);
43int net_ads_changetrustpw(struct net_context *c, int argc, const char **argv);
44int net_ads_keytab(struct net_context *c, int argc, const char **argv);
45int net_ads_kerberos(struct net_context *c, int argc, const char **argv);
46int net_ads(struct net_context *c, int argc, const char **argv);
47
48/* The following definitions come from utils/net_ads_gpo.c */
49
50int net_ads_gpo(struct net_context *c, int argc, const char **argv);
51
52/* The following definitions come from utils/net_cache.c */
53
54int net_cache(struct net_context *c, int argc, const char **argv);
55
56/* The following definitions come from utils/net_conf.c */
57
58int net_conf(struct net_context *c, int argc, const char **argv);
59
60/* The following definitions come from utils/net_dns.c */
61
62int get_my_ip_address( struct sockaddr_storage **pp_ss );
63
64/* The following definitions come from utils/net_dom.c */
65
66int net_dom_usage(struct net_context *c, int argc, const char **argv);
67int net_dom(struct net_context *c, int argc, const char **argv);
68
69/* The following definitions come from utils/net_file.c */
70
71int net_file_usage(struct net_context *c, int argc, const char **argv);
72int net_file(struct net_context *c, int argc, const char **argv);
73
74/* The following definitions come from utils/net_group.c */
75
76int net_group_usage(struct net_context *c, int argc, const char **argv);
77int net_group(struct net_context *c, int argc, const char **argv);
78
79/* The following definitions come from utils/net_groupmap.c */
80
81int net_groupmap_usage(struct net_context *c, int argc, const char **argv);
82int net_groupmap(struct net_context *c, int argc, const char **argv);
83
84/* The following definitions come from utils/net_help.c */
85
86int net_help(struct net_context *c, int argc, const char **argv);
87
88/* The following definitions come from utils/net_idmap.c */
89
90int net_idmap(struct net_context *c, int argc, const char **argv);
91
92/* The following definitions come from utils/net_join.c */
93
94int net_join_usage(struct net_context *c, int argc, const char **argv);
95int net_join(struct net_context *c, int argc, const char **argv);
96
97/* The following definitions come from utils/net_lookup.c */
98
99int net_lookup_usage(struct net_context *c, int argc, const char **argv);
100int net_lookup(struct net_context *c, int argc, const char **argv);
101
102/* The following definitions come from utils/net_rap.c */
103
104int net_rap_file_usage(struct net_context *c, int argc, const char **argv);
105int net_rap_file(struct net_context *c, int argc, const char **argv);
106int net_rap_share_usage(struct net_context *c, int argc, const char **argv);
107int net_rap_share(struct net_context *c, int argc, const char **argv);
108int net_rap_session_usage(struct net_context *c, int argc, const char **argv);
109int net_rap_session(struct net_context *c, int argc, const char **argv);
110int net_rap_server_usage(struct net_context *c, int argc, const char **argv);
111int net_rap_server(struct net_context *c, int argc, const char **argv);
112int net_rap_domain_usage(struct net_context *c, int argc, const char **argv);
113int net_rap_domain(struct net_context *c, int argc, const char **argv);
114int net_rap_printq_usage(struct net_context *c, int argc, const char **argv);
115int net_rap_printq(struct net_context *c, int argc, const char **argv);
116int net_rap_user(struct net_context *c, int argc, const char **argv);
117int net_rap_group_usage(struct net_context *c, int argc, const char **argv);
118int net_rap_group(struct net_context *c, int argc, const char **argv);
119int net_rap_groupmember_usage(struct net_context *c, int argc, const char **argv);
120int net_rap_groupmember(struct net_context *c, int argc, const char **argv);
121int net_rap_validate_usage(struct net_context *c, int argc, const char **argv);
122int net_rap_validate(struct net_context *c, int argc, const char **argv);
123int net_rap_service_usage(struct net_context *c, int argc, const char **argv);
124int net_rap_service(struct net_context *c, int argc, const char **argv);
125int net_rap_password_usage(struct net_context *c, int argc, const char **argv);
126int net_rap_password(struct net_context *c, int argc, const char **argv);
127int net_rap_admin_usage(struct net_context *c, int argc, const char **argv);
128int net_rap_admin(struct net_context *c, int argc, const char **argv);
129int net_rap(struct net_context *c, int argc, const char **argv);
130
131/* The following definitions come from utils/net_registry.c */
132
133int net_registry(struct net_context *c, int argc, const char **argv);
134
135/* The following definitions come from utils/net_rpc.c */
136
137NTSTATUS net_get_remote_domain_sid(struct cli_state *cli, TALLOC_CTX *mem_ctx,
138 struct dom_sid **domain_sid,
139 const char **domain_name);
140int run_rpc_command(struct net_context *c,
141 struct cli_state *cli_arg,
142 const struct ndr_interface_table *table,
143 int conn_flags,
144 rpc_command_fn fn,
145 int argc,
146 const char **argv);
147int net_rpc_changetrustpw(struct net_context *c, int argc, const char **argv);
148int net_rpc_testjoin(struct net_context *c, int argc, const char **argv);
149int net_rpc_join(struct net_context *c, int argc, const char **argv);
150NTSTATUS rpc_info_internals(struct net_context *c,
151 const struct dom_sid *domain_sid,
152 const char *domain_name,
153 struct cli_state *cli,
154 struct rpc_pipe_client *pipe_hnd,
155 TALLOC_CTX *mem_ctx,
156 int argc,
157 const char **argv);
158int net_rpc_info(struct net_context *c, int argc, const char **argv);
159int net_rpc_getsid(struct net_context *c, int argc, const char **argv);
160int net_rpc_user(struct net_context *c, int argc, const char **argv);
161struct rpc_sh_cmd *net_rpc_user_edit_cmds(struct net_context *c,
162 TALLOC_CTX *mem_ctx,
163 struct rpc_sh_ctx *ctx);
164struct rpc_sh_cmd *net_rpc_user_cmds(struct net_context *c,
165 TALLOC_CTX *mem_ctx,
166 struct rpc_sh_ctx *ctx);
167int net_rpc_group(struct net_context *c, int argc, const char **argv);
168bool copy_top_level_perms(struct net_context *c,
169 struct copy_clistate *cp_clistate,
170 const char *sharename);
171int net_usersidlist(struct net_context *c, int argc, const char **argv);
172int net_usersidlist_usage(struct net_context *c, int argc, const char **argv);
173int net_rpc_share(struct net_context *c, int argc, const char **argv);
174struct rpc_sh_cmd *net_rpc_share_cmds(struct net_context *c, TALLOC_CTX *mem_ctx,
175 struct rpc_sh_ctx *ctx);
176int net_rpc_file(struct net_context *c, int argc, const char **argv);
177NTSTATUS rpc_init_shutdown_internals(struct net_context *c,
178 const struct dom_sid *domain_sid,
179 const char *domain_name,
180 struct cli_state *cli,
181 struct rpc_pipe_client *pipe_hnd,
182 TALLOC_CTX *mem_ctx,
183 int argc,
184 const char **argv);
185NTSTATUS rpc_reg_shutdown_internals(struct net_context *c,
186 const struct dom_sid *domain_sid,
187 const char *domain_name,
188 struct cli_state *cli,
189 struct rpc_pipe_client *pipe_hnd,
190 TALLOC_CTX *mem_ctx,
191 int argc,
192 const char **argv);
193bool net_rpc_check(struct net_context *c, unsigned flags);
194int rpc_printer_migrate(struct net_context *c, int argc, const char **argv);
195int rpc_printer_usage(struct net_context *c, int argc, const char **argv);
196int net_rpc_printer(struct net_context *c, int argc, const char **argv);
197int net_rpc(struct net_context *c, int argc, const char **argv);
198
199/* The following definitions come from utils/net_rpc_audit.c */
200
201int net_rpc_audit(struct net_context *c, int argc, const char **argv);
202
203/* The following definitions come from utils/net_rpc_printer.c */
204
205NTSTATUS net_copy_fileattr(struct net_context *c,
206 TALLOC_CTX *mem_ctx,
207 struct cli_state *cli_share_src,
208 struct cli_state *cli_share_dst,
209 const char *src_name, const char *dst_name,
210 bool copy_acls, bool copy_attrs,
211 bool copy_timestamps, bool is_file);
212NTSTATUS net_copy_file(struct net_context *c,
213 TALLOC_CTX *mem_ctx,
214 struct cli_state *cli_share_src,
215 struct cli_state *cli_share_dst,
216 const char *src_name, const char *dst_name,
217 bool copy_acls, bool copy_attrs,
218 bool copy_timestamps, bool is_file);
219NTSTATUS rpc_printer_list_internals(struct net_context *c,
220 const struct dom_sid *domain_sid,
221 const char *domain_name,
222 struct cli_state *cli,
223 struct rpc_pipe_client *pipe_hnd,
224 TALLOC_CTX *mem_ctx,
225 int argc,
226 const char **argv);
227NTSTATUS rpc_printer_driver_list_internals(struct net_context *c,
228 const struct dom_sid *domain_sid,
229 const char *domain_name,
230 struct cli_state *cli,
231 struct rpc_pipe_client *pipe_hnd,
232 TALLOC_CTX *mem_ctx,
233 int argc,
234 const char **argv);
235NTSTATUS rpc_printer_publish_publish_internals(struct net_context *c,
236 const struct dom_sid *domain_sid,
237 const char *domain_name,
238 struct cli_state *cli,
239 struct rpc_pipe_client *pipe_hnd,
240 TALLOC_CTX *mem_ctx,
241 int argc,
242 const char **argv);
243NTSTATUS rpc_printer_publish_unpublish_internals(struct net_context *c,
244 const struct dom_sid *domain_sid,
245 const char *domain_name,
246 struct cli_state *cli,
247 struct rpc_pipe_client *pipe_hnd,
248 TALLOC_CTX *mem_ctx,
249 int argc,
250 const char **argv);
251NTSTATUS rpc_printer_publish_update_internals(struct net_context *c,
252 const struct dom_sid *domain_sid,
253 const char *domain_name,
254 struct cli_state *cli,
255 struct rpc_pipe_client *pipe_hnd,
256 TALLOC_CTX *mem_ctx,
257 int argc,
258 const char **argv);
259NTSTATUS rpc_printer_publish_list_internals(struct net_context *c,
260 const struct dom_sid *domain_sid,
261 const char *domain_name,
262 struct cli_state *cli,
263 struct rpc_pipe_client *pipe_hnd,
264 TALLOC_CTX *mem_ctx,
265 int argc,
266 const char **argv);
267NTSTATUS rpc_printer_migrate_security_internals(struct net_context *c,
268 const struct dom_sid *domain_sid,
269 const char *domain_name,
270 struct cli_state *cli,
271 struct rpc_pipe_client *pipe_hnd,
272 TALLOC_CTX *mem_ctx,
273 int argc,
274 const char **argv);
275NTSTATUS rpc_printer_migrate_forms_internals(struct net_context *c,
276 const struct dom_sid *domain_sid,
277 const char *domain_name,
278 struct cli_state *cli,
279 struct rpc_pipe_client *pipe_hnd,
280 TALLOC_CTX *mem_ctx,
281 int argc,
282 const char **argv);
283NTSTATUS rpc_printer_migrate_drivers_internals(struct net_context *c,
284 const struct dom_sid *domain_sid,
285 const char *domain_name,
286 struct cli_state *cli,
287 struct rpc_pipe_client *pipe_hnd,
288 TALLOC_CTX *mem_ctx,
289 int argc,
290 const char **argv);
291NTSTATUS rpc_printer_migrate_printers_internals(struct net_context *c,
292 const struct dom_sid *domain_sid,
293 const char *domain_name,
294 struct cli_state *cli,
295 struct rpc_pipe_client *pipe_hnd,
296 TALLOC_CTX *mem_ctx,
297 int argc,
298 const char **argv);
299NTSTATUS rpc_printer_migrate_settings_internals(struct net_context *c,
300 const struct dom_sid *domain_sid,
301 const char *domain_name,
302 struct cli_state *cli,
303 struct rpc_pipe_client *pipe_hnd,
304 TALLOC_CTX *mem_ctx,
305 int argc,
306 const char **argv);
307
308/* The following definitions come from utils/net_rpc_registry.c */
309
310int net_rpc_registry(struct net_context *c, int argc, const char **argv);
311
312/* The following definitions come from utils/net_rpc_rights.c */
313
314int net_rpc_rights(struct net_context *c, int argc, const char **argv);
315struct rpc_sh_cmd *net_rpc_rights_cmds(struct net_context *c, TALLOC_CTX *mem_ctx,
316 struct rpc_sh_ctx *ctx);
317
318/* The following definitions come from utils/net_rpc_samsync.c */
319
320NTSTATUS rpc_samdump_internals(struct net_context *c,
321 const struct dom_sid *domain_sid,
322 const char *domain_name,
323 struct cli_state *cli,
324 struct rpc_pipe_client *pipe_hnd,
325 TALLOC_CTX *mem_ctx,
326 int argc,
327 const char **argv);
328int rpc_vampire_usage(struct net_context *c, int argc, const char **argv);
329int rpc_vampire_passdb(struct net_context *c, int argc, const char **argv);
330int rpc_vampire_ldif(struct net_context *c, int argc, const char **argv);
331int rpc_vampire_keytab(struct net_context *c, int argc, const char **argv);
332
333/* The following definitions come from utils/net_rpc_service.c */
334
335const char *svc_status_string( uint32_t state );
336int net_rpc_service(struct net_context *c, int argc, const char **argv);
337
338/* The following definitions come from utils/net_rpc_sh_acct.c */
339
340struct rpc_sh_cmd *net_rpc_acct_cmds(struct net_context *c, TALLOC_CTX *mem_ctx,
341 struct rpc_sh_ctx *ctx);
342
343/* The following definitions come from utils/net_rpc_shell.c */
344
345int net_rpc_shell(struct net_context *c, int argc, const char **argv);
346
347/* The following definitions come from utils/net_sam.c */
348
349int net_sam(struct net_context *c, int argc, const char **argv);
350
351/* The following definitions come from utils/net_share.c */
352
353int net_share_usage(struct net_context *c, int argc, const char **argv);
354int net_share(struct net_context *c, int argc, const char **argv);
355
356/* The following definitions come from utils/net_status.c */
357
358int net_status_usage(struct net_context *c, int argc, const char **argv);
359int net_status(struct net_context *c, int argc, const char **argv);
360
361/* The following definitions come from utils/net_time.c */
362
363int net_time_usage(struct net_context *c, int argc, const char **argv);
364int net_time(struct net_context *c, int argc, const char **argv);
365
366/* The following definitions come from utils/net_user.c */
367
368int net_user_usage(struct net_context *c, int argc, const char **argv);
369int net_user(struct net_context *c, int argc, const char **argv);
370
371/* The following definitions come from utils/net_usershare.c */
372
373int net_usershare_usage(struct net_context *c, int argc, const char **argv);
374int net_usershare_help(struct net_context *c, int argc, const char **argv);
375int net_usershare(struct net_context *c, int argc, const char **argv);
376
377/* The following definitions come from utils/net_eventlog.c */
378
379int net_eventlog(struct net_context *c, int argc, const char **argv);
380
381/* The following definitions come from utils/net_printing.c */
382
383int net_printing(struct net_context *c, int argc, const char **argv);
384
385/* The following definitions come from utils/net_serverid.c */
386
387int net_serverid(struct net_context *c, int argc, const char **argv);
388
389/* The following definitions come from utils/net_util.c */
390
391NTSTATUS net_rpc_lookup_name(struct net_context *c,
392 TALLOC_CTX *mem_ctx, struct cli_state *cli,
393 const char *name, const char **ret_domain,
394 const char **ret_name, struct dom_sid *ret_sid,
395 enum lsa_SidType *ret_type);
396NTSTATUS connect_to_service(struct net_context *c,
397 struct cli_state **cli_ctx,
398 const struct sockaddr_storage *server_ss,
399 const char *server_name,
400 const char *service_name,
401 const char *service_type);
402NTSTATUS connect_to_ipc(struct net_context *c,
403 struct cli_state **cli_ctx,
404 const struct sockaddr_storage *server_ss,
405 const char *server_name);
406NTSTATUS connect_to_ipc_anonymous(struct net_context *c,
407 struct cli_state **cli_ctx,
408 const struct sockaddr_storage *server_ss,
409 const char *server_name);
410NTSTATUS connect_dst_pipe(struct net_context *c, struct cli_state **cli_dst,
411 struct rpc_pipe_client **pp_pipe_hnd,
412 const struct ndr_interface_table *table);
413int net_use_krb_machine_account(struct net_context *c);
414int net_use_machine_account(struct net_context *c);
415bool net_find_server(struct net_context *c,
416 const char *domain,
417 unsigned flags,
418 struct sockaddr_storage *server_ss,
419 char **server_name);
420bool net_find_pdc(struct sockaddr_storage *server_ss,
421 fstring server_name,
422 const char *domain_name);
423NTSTATUS net_make_ipc_connection(struct net_context *c, unsigned flags,
424 struct cli_state **pcli);
425NTSTATUS net_make_ipc_connection_ex(struct net_context *c ,const char *domain,
426 const char *server,
427 const struct sockaddr_storage *pss,
428 unsigned flags, struct cli_state **pcli);
429const char *net_prompt_pass(struct net_context *c, const char *user);
430int net_run_function(struct net_context *c, int argc, const char **argv,
431 const char *whoami, struct functable *table);
432void net_display_usage_from_functable(struct functable *table);
433
434const char *net_share_type_str(int num_type);
435
436NTSTATUS net_scan_dc(struct net_context *c,
437 struct cli_state *cli,
438 struct net_dc_info *dc_info);
439
440/* The following definitions come from utils/netlookup.c */
441
442NTSTATUS net_lookup_name_from_sid(struct net_context *c,
443 TALLOC_CTX *ctx,
444 struct dom_sid *psid,
445 const char **ppdomain,
446 const char **ppname);
447NTSTATUS net_lookup_sid_from_name(struct net_context *c, TALLOC_CTX *ctx,
448 const char *full_name, struct dom_sid *pret_sid);
449
450/* The following definitions come from utils/passwd_util.c */
451
452char *stdin_new_passwd( void);
453char *get_pass( const char *prompt, bool stdin_get);
454
455/* The following definitions come from utils/net_g_lock.c */
456int net_g_lock(struct net_context *c, int argc, const char **argv);
457
458/* The following definitions come from utils/net_rpc_trust.c */
459int net_rpc_trust(struct net_context *c, int argc, const char **argv);
460
461/* The following definitions come from utils/net_rpc_conf.c */
462int net_rpc_conf(struct net_context *c, int argc, const char **argv);
463
464int net_notify(struct net_context *c, int argc, const char **argv);
465#endif /* _NET_PROTO_H_ */
Note: See TracBrowser for help on using the repository browser.