s3: libsmb: In cli_ntrename_internal_send() (SMBntrename) check for DFS dst pathname.
[Samba.git] / source3 / utils / net_help_common.c
bloba861d3ffd145fdbac5bff5ddad8efe4d2f4faa68
1 /*
2 Samba Unix/Linux SMB client library
3 net help commands
4 Copyright (C) 2002 Jim McDonough (jmcd@us.ibm.com)
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.
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.
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/>.
20 #include "includes.h"
21 #include "utils/net.h"
23 int net_common_methods_usage(struct net_context *c, int argc, const char**argv)
25 d_printf(_("Valid methods: (auto-detected if not specified)\n"));
26 d_printf(_("\tads\t\t\t\tActive Directory (LDAP/Kerberos)\n"));
27 d_printf(_("\trpc\t\t\t\tDCE-RPC\n"));
28 d_printf(_("\trap\t\t\t\tRAP (older systems)\n"));
29 d_printf("\n");
30 return 0;
33 int net_common_flags_usage(struct net_context *c, int argc, const char **argv)
35 d_printf(_("Valid targets: choose one (none defaults to localhost)\n"));
36 d_printf(_("\t-S|--server=<server>\t\t\tserver name\n"));
37 d_printf(_("\t-I|--ipaddress=<ipaddr>\t\t\taddress of target server\n"));
38 d_printf(_("\t-w|--target-workgroup=<wg>\t\ttarget workgroup or domain\n"));
40 d_printf("\n");
41 d_printf(_("Valid misc options are:\n")); /* misc options */
42 d_printf(_("\t-p|--port=<port>\t\t\tconnection port on target\n"));
43 d_printf(_("\t--myname=<name>\t\t\t\tclient name\n"));
44 d_printf(_("\t--long\t\t\t\t\tDisplay full information\n"));
46 d_printf("\n");
47 d_printf(_("Valid common options are:\n")); /* misc options */
48 d_printf(_("\t-d|--debuglevel=<level>\t\t\tdebug level (0-10)\n"));
49 d_printf(_("\t--debug-stdout\t\t\t\tSend debug output to standard "
50 "output\n"));
51 d_printf(_("\t--configfile=<path>\t\t\tpathname of smb.conf file\n"));
52 d_printf(_("\t--option=name=value\t\t\tSet smb.conf option from "
53 "command line\n"));
54 d_printf(_("\t-l|--log-basename=LOGFILEBASE\t\tBasename for "
55 "log/debug files\n"));
56 d_printf(_("\t--leak-report\t\t\t\tenable talloc leak reporting on "
57 "exit\n"));
58 d_printf(_("\t--leak-report-full\t\t\tenable full talloc leak "
59 "reporting on exit\n"));
60 d_printf(_("\t-V|--version\t\t\t\tPrint samba version information\n"));
62 d_printf("\n");
63 d_printf(_("Valid connection options are:\n")); /* misc options */
64 d_printf(_("\t-R|--name-resolve=NAME-RESOLVE-ORDER\tUse these name "
65 "resolution services only\n"));
66 d_printf(_("\t-O|--socket-options=SOCKETOPTIONS\tsocket options to use\n"));
67 d_printf(_("\t-m|--max-protocol=MAXPROTOCOL\t\tSet max protocol level\n"));
68 d_printf(_("\t-n|--netbiosname=NETBIOSNAME\t\tPrimary netbios name\n"));
69 d_printf(_("\t--netbios-scope=SCOPE\t\t\tUse this Netbios scope\n"));
70 d_printf(_("\t-W|--workgroup=WORKGROUP\t\tSet the workgroup name\n"));
71 d_printf(_("\t--realm=REALM\t\t\t\tSet the realm name\n"));
73 d_printf("\n");
74 d_printf(_("Valid credential options are:\n")); /* misc options */
75 d_printf(_("\t-U|--user=[DOMAIN/]USERNAME[%%PASSWORD]\tSet the "
76 "network username\n"));
77 d_printf(_("\t-N|--no-pass\t\t\t\tDon't ask for a password\n"));
78 d_printf(_("\t--password=STRING\t\t\tSet a password\n"));
79 d_printf(_("\t--pw-nt-hash\t\t\t\tThe supplied password is the NT hash\n"));
80 d_printf(_("\t-A|--authentication-file=FILE\t\tGet the "
81 "credentials from a file\n"));
82 d_printf(_("\t-P|--machine-pass\t\t\tUse stored machine account password\n"));
83 d_printf(_("\t--simple-bind-dn=DN\t\t\tDN to use for a simple bind\n"));
84 d_printf(_("\t--use-kerberos=desired|required|off\tUse kerberos "
85 "authentication\n"));
86 d_printf(_("\t--use-krb5-ccache=CCACHE\t\tCredentials cache location "
87 "for Kerberos\n"));
88 d_printf(_("\t--use-winbind-ccache\t\t\tUse the winbind ccache for "
89 "authentication\n"));
90 d_printf(_("\t--client-protection=sign|encrypt|off\tConfigure used "
91 "protection for client connections\n"));
93 return -1;