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 " ) ) ;
d_printf ( _ ( " \t -S or --server=<server> \t \t server name \n " ) ) ;
d_printf ( _ ( " \t -I or --ipaddress=<ipaddr> \t address of target server \n " ) ) ;
d_printf ( _ ( " \t -w or --workgroup=<wg> \t \t target workgroup or domain \n " ) ) ;
2008-05-12 16:38:21 +04:00
d_printf ( " \n " ) ;
2009-07-30 13:30:33 +04:00
d_printf ( _ ( " Valid miscellaneous options are: \n " ) ) ; /* misc options */
d_printf ( _ ( " \t -p or --port=<port> \t \t connection port on target \n " ) ) ;
d_printf ( _ ( " \t -W or --myworkgroup=<wg> \t client workgroup \n " ) ) ;
d_printf ( _ ( " \t -d or --debuglevel=<level> \t debug level (0-10) \n " ) ) ;
d_printf ( _ ( " \t -n or --myname=<name> \t \t client name \n " ) ) ;
d_printf ( _ ( " \t -U or --user=<name> \t \t user name \n " ) ) ;
d_printf ( _ ( " \t -s or --configfile=<path> \t pathname of smb.conf file \n " ) ) ;
d_printf ( _ ( " \t -l or --long \t \t \t Display full information \n " ) ) ;
d_printf ( _ ( " \t -V or --version \t \t \t Print samba version information \n " ) ) ;
d_printf ( _ ( " \t -P or --machine-pass \t \t Authenticate as machine "
" account \n " ) ) ;
d_printf ( _ ( " \t -e or --encrypt \t \t \t Encrypt SMB transport "
" (UNIX extended servers only) \n " ) ) ;
d_printf ( _ ( " \t -k or --kerberos \t \t Use kerberos (active directory) "
" authentication \n " ) ) ;
2008-05-12 16:38:21 +04:00
return - 1 ;
}