Line data Source code
1 : /*
2 : Samba Unix/Linux SMB client library
3 : net help commands
4 : Copyright (C) 2002 Jim McDonough (jmcd@us.ibm.com)
5 :
6 : This program is free software; you can redistribute it and/or modify
7 : it under the terms of the GNU General Public License as published by
8 : the Free Software Foundation; either version 3 of the License, or
9 : (at your option) any later version.
10 :
11 : This program is distributed in the hope that it will be useful,
12 : but WITHOUT ANY WARRANTY; without even the implied warranty of
13 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 : GNU General Public License for more details.
15 :
16 : You should have received a copy of the GNU General Public License
17 : along with this program. If not, see <http://www.gnu.org/licenses/>.
18 : */
19 :
20 : #include "includes.h"
21 : #include "utils/net.h"
22 :
23 0 : int net_common_methods_usage(struct net_context *c, int argc, const char**argv)
24 : {
25 0 : d_printf(_("Valid methods: (auto-detected if not specified)\n"));
26 0 : d_printf(_("\tads\t\t\t\tActive Directory (LDAP/Kerberos)\n"));
27 0 : d_printf(_("\trpc\t\t\t\tDCE-RPC\n"));
28 0 : d_printf(_("\trap\t\t\t\tRAP (older systems)\n"));
29 0 : d_printf("\n");
30 0 : return 0;
31 : }
32 :
33 0 : int net_common_flags_usage(struct net_context *c, int argc, const char **argv)
34 : {
35 0 : d_printf(_("Valid targets: choose one (none defaults to localhost)\n"));
36 0 : d_printf(_("\t-S|--server=<server>\t\t\tserver name\n"));
37 0 : d_printf(_("\t-I|--ipaddress=<ipaddr>\t\t\taddress of target server\n"));
38 0 : d_printf(_("\t-w|--target-workgroup=<wg>\t\ttarget workgroup or domain\n"));
39 :
40 0 : d_printf("\n");
41 0 : d_printf(_("Valid misc options are:\n")); /* misc options */
42 0 : d_printf(_("\t-p|--port=<port>\t\t\tconnection port on target\n"));
43 0 : d_printf(_("\t--myname=<name>\t\t\t\tclient name\n"));
44 0 : d_printf(_("\t--long\t\t\t\t\tDisplay full information\n"));
45 :
46 0 : d_printf("\n");
47 0 : d_printf(_("Valid common options are:\n")); /* misc options */
48 0 : d_printf(_("\t-d|--debuglevel=<level>\t\t\tdebug level (0-10)\n"));
49 0 : d_printf(_("\t--debug-stdout\t\t\t\tSend debug output to standard "
50 : "output\n"));
51 0 : d_printf(_("\t--configfile=<path>\t\t\tpathname of smb.conf file\n"));
52 0 : d_printf(_("\t--option=name=value\t\t\tSet smb.conf option from "
53 : "command line\n"));
54 0 : d_printf(_("\t-l|--log-basename=LOGFILEBASE\t\tBasename for "
55 : "log/debug files\n"));
56 0 : d_printf(_("\t--leak-report\t\t\t\tenable talloc leak reporting on "
57 : "exit\n"));
58 0 : d_printf(_("\t--leak-report-full\t\t\tenable full talloc leak "
59 : "reporting on exit\n"));
60 0 : d_printf(_("\t-V|--version\t\t\t\tPrint samba version information\n"));
61 :
62 0 : d_printf("\n");
63 0 : d_printf(_("Valid connection options are:\n")); /* misc options */
64 0 : d_printf(_("\t-R|--name-resolve=NAME-RESOLVE-ORDER\tUse these name "
65 : "resolution services only\n"));
66 0 : d_printf(_("\t-O|--socket-options=SOCKETOPTIONS\tsocket options to use\n"));
67 0 : d_printf(_("\t-m|--max-protocol=MAXPROTOCOL\t\tSet max protocol level\n"));
68 0 : d_printf(_("\t-n|--netbiosname=NETBIOSNAME\t\tPrimary netbios name\n"));
69 0 : d_printf(_("\t--netbios-scope=SCOPE\t\t\tUse this Netbios scope\n"));
70 0 : d_printf(_("\t-W|--workgroup=WORKGROUP\t\tSet the workgroup name\n"));
71 0 : d_printf(_("\t--realm=REALM\t\t\t\tSet the realm name\n"));
72 :
73 0 : d_printf("\n");
74 0 : d_printf(_("Valid credential options are:\n")); /* misc options */
75 0 : d_printf(_("\t-U|--user=[DOMAIN/]USERNAME[%%PASSWORD]\tSet the "
76 : "network username\n"));
77 0 : d_printf(_("\t-N|--no-pass\t\t\t\tDon't ask for a password\n"));
78 0 : d_printf(_("\t--password=STRING\t\t\tSet a password\n"));
79 0 : d_printf(_("\t--pw-nt-hash\t\t\t\tThe supplied password is the NT hash\n"));
80 0 : d_printf(_("\t-A|--authentication-file=FILE\t\tGet the "
81 : "credentials from a file\n"));
82 0 : d_printf(_("\t-P|--machine-pass\t\t\tUse stored machine account password\n"));
83 0 : d_printf(_("\t--simple-bind-dn=DN\t\t\tDN to use for a simple bind\n"));
84 0 : d_printf(_("\t--use-kerberos=desired|required|off\tUse kerberos "
85 : "authentication\n"));
86 0 : d_printf(_("\t--use-krb5-ccache=CCACHE\t\tCredentials cache location "
87 : "for Kerberos\n"));
88 0 : d_printf(_("\t--use-winbind-ccache\t\t\tUse the winbind ccache for "
89 : "authentication\n"));
90 0 : d_printf(_("\t--client-protection=sign|encrypt|off\tConfigure used "
91 : "protection for client connections\n"));
92 :
93 0 : return -1;
94 : }
95 :
|