2008-05-12 16:38:21 +04:00
/*
Samba Unix / Linux SMB client library
net help commands
Copyright ( C ) 2002 Jim McDonough ( jmcd @ us . ibm . com )
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 3 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program . If not , see < http : //www.gnu.org/licenses/>.
*/
# include "includes.h"
# include "utils/net.h"
int net_common_methods_usage ( struct net_context * c , int argc , const char * * argv )
{
2009-07-30 13:30:33 +04:00
d_printf ( _ ( " Valid methods: (auto-detected if not specified) \n " ) ) ;
d_printf ( _ ( " \t ads \t \t \t \t Active Directory (LDAP/Kerberos) \n " ) ) ;
d_printf ( _ ( " \t rpc \t \t \t \t DCE-RPC \n " ) ) ;
d_printf ( _ ( " \t rap \t \t \t \t RAP (older systems) \n " ) ) ;
2008-05-12 16:38:21 +04:00
d_printf ( " \n " ) ;
return 0 ;
}
int net_common_flags_usage ( struct net_context * c , int argc , const char * * argv )
{
2009-07-30 13:30:33 +04:00
d_printf ( _ ( " Valid targets: choose one (none defaults to localhost) \n " ) ) ;
2021-01-19 09:49:26 +03:00
d_printf ( _ ( " \t -S|--server=<server> \t \t \t server name \n " ) ) ;
d_printf ( _ ( " \t -I|--ipaddress=<ipaddr> \t \t \t address of target server \n " ) ) ;
d_printf ( _ ( " \t -w|--target-workgroup=<wg> \t \t target workgroup or domain \n " ) ) ;
2008-05-12 16:38:21 +04:00
d_printf ( " \n " ) ;
2021-01-19 09:49:26 +03:00
d_printf ( _ ( " Valid misc options are: \n " ) ) ; /* misc options */
d_printf ( _ ( " \t -p|--port=<port> \t \t \t connection port on target \n " ) ) ;
d_printf ( _ ( " \t --myname=<name> \t \t \t \t client name \n " ) ) ;
d_printf ( _ ( " \t --long \t \t \t \t \t Display full information \n " ) ) ;
d_printf ( " \n " ) ;
d_printf ( _ ( " Valid common options are: \n " ) ) ; /* misc options */
d_printf ( _ ( " \t -d|--debuglevel=<level> \t \t \t debug level (0-10) \n " ) ) ;
d_printf ( _ ( " \t --debug-stdout \t \t \t \t Send debug output to standard "
" output \n " ) ) ;
d_printf ( _ ( " \t --configfile=<path> \t \t \t pathname of smb.conf file \n " ) ) ;
d_printf ( _ ( " \t --option=name=value \t \t \t Set smb.conf option from "
" command line \n " ) ) ;
d_printf ( _ ( " \t -l|--log-basename=LOGFILEBASE \t \t Basename for "
" log/debug files \n " ) ) ;
d_printf ( _ ( " \t --leak-report \t \t \t \t enable talloc leak reporting on "
" exit \n " ) ) ;
d_printf ( _ ( " \t --leak-report-full \t \t \t enable full talloc leak "
" reporting on exit \n " ) ) ;
d_printf ( _ ( " \t -V|--version \t \t \t \t Print samba version information \n " ) ) ;
d_printf ( " \n " ) ;
d_printf ( _ ( " Valid connection options are: \n " ) ) ; /* misc options */
d_printf ( _ ( " \t -R|--name-resolve=NAME-RESOLVE-ORDER \t Use these name "
" resolution services only \n " ) ) ;
d_printf ( _ ( " \t -O|--socket-options=SOCKETOPTIONS \t socket options to use \n " ) ) ;
2021-09-10 12:22:07 +03:00
d_printf ( _ ( " \t -m|--max-protocol=MAXPROTOCOL \t \t Set max protocol level \n " ) ) ;
2021-01-19 09:49:26 +03:00
d_printf ( _ ( " \t -n|--netbiosname=NETBIOSNAME \t \t Primary netbios name \n " ) ) ;
d_printf ( _ ( " \t --netbios-scope=SCOPE \t \t \t Use this Netbios scope \n " ) ) ;
d_printf ( _ ( " \t -W|--workgroup=WORKGROUP \t \t Set the workgroup name \n " ) ) ;
d_printf ( _ ( " \t --realm=REALM \t \t \t \t Set the realm name \n " ) ) ;
d_printf ( " \n " ) ;
d_printf ( _ ( " Valid credential options are: \n " ) ) ; /* misc options */
d_printf ( _ ( " \t -U|--user=[DOMAIN/]USERNAME[%%PASSWORD] \t Set the "
" network username \n " ) ) ;
d_printf ( _ ( " \t -N|--no-pass \t \t \t \t Don't ask for a password \n " ) ) ;
d_printf ( _ ( " \t --password=STRING \t \t \t Set a password \n " ) ) ;
d_printf ( _ ( " \t --pw-nt-hash \t \t \t \t The supplied password is the NT hash \n " ) ) ;
d_printf ( _ ( " \t -A|--authentication-file=FILE \t \t Get the "
" credentials from a file \n " ) ) ;
d_printf ( _ ( " \t -P|--machine-pass \t \t \t Use stored machine account password \n " ) ) ;
d_printf ( _ ( " \t --simple-bind-dn=DN \t \t \t DN to use for a simple bind \n " ) ) ;
d_printf ( _ ( " \t --use-kerberos=desired|required|off \t Use kerberos "
2009-07-30 13:30:33 +04:00
" authentication \n " ) ) ;
2021-01-19 09:49:26 +03:00
d_printf ( _ ( " \t --use-krb5-ccache=CCACHE \t \t Credentials cache location "
" for Kerberos \n " ) ) ;
d_printf ( _ ( " \t --use-winbind-ccache \t \t \t Use the winbind ccache for "
" authentication \n " ) ) ;
d_printf ( _ ( " \t --client-protection=sign|encrypt|off \t Configure used "
" protection for client connections \n " ) ) ;
2008-05-12 16:38:21 +04:00
return - 1 ;
}