mirror of
https://github.com/samba-team/samba.git
synced 2025-01-21 18:04:06 +03:00
Converged help on net group command.
(This used to be commit 9de5e0dc73f57e8c8b878da803452b86e6ce8fca)
This commit is contained in:
parent
2503dc8eb8
commit
d06f4fa834
@ -78,11 +78,27 @@ int net_help_user(int argc, const char **argv)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int net_help_group(int argc, const char **argv)
|
||||||
|
{
|
||||||
|
d_printf("net [method] group [misc. options] [targets]"\
|
||||||
|
"\n\tList user groups\n\n");
|
||||||
|
d_printf("net [method] group DELETE <name> [misc. options] [targets]"\
|
||||||
|
"\n\tDelete specified group\n");
|
||||||
|
d_printf("\nnet [method] group ADD <name> [-C comment]"\
|
||||||
|
" [misc. options] [targets]\n\tCreate specified group\n");
|
||||||
|
net_common_methods_usage(argc, argv);
|
||||||
|
net_common_flags_usage(argc, argv);
|
||||||
|
d_printf(
|
||||||
|
"\t-C or --comment=<comment>\tdescriptive comment (for add only)\n");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
static int net_usage(int argc, const char **argv)
|
static int net_usage(int argc, const char **argv)
|
||||||
{
|
{
|
||||||
d_printf(" net time\t\tto view or set time information\n"\
|
d_printf(" net time\t\tto view or set time information\n"\
|
||||||
" net lookup\t\tto lookup host name or ip address\n"\
|
" net lookup\t\tto lookup host name or ip address\n"\
|
||||||
" net user\t\tto manage users\n"\
|
" net user\t\tto manage users\n"\
|
||||||
|
" net group\t\tto manage groups\n"\
|
||||||
" net join\t\tto join a domain\n"\
|
" net join\t\tto join a domain\n"\
|
||||||
"\n"\
|
"\n"\
|
||||||
" net ads [command]\tto run ADS commands\n"\
|
" net ads [command]\tto run ADS commands\n"\
|
||||||
@ -110,7 +126,7 @@ int net_help(int argc, const char **argv)
|
|||||||
{"DOMAIN", net_rap_domain_usage},
|
{"DOMAIN", net_rap_domain_usage},
|
||||||
{"PRINTQ", net_rap_printq_usage},
|
{"PRINTQ", net_rap_printq_usage},
|
||||||
{"USER", net_help_user},
|
{"USER", net_help_user},
|
||||||
{"GROUP", net_rap_group_usage},
|
{"GROUP", net_help_group},
|
||||||
{"VALIDATE", net_rap_validate_usage},
|
{"VALIDATE", net_rap_validate_usage},
|
||||||
{"GROUPMEMBER", net_rap_groupmember_usage},
|
{"GROUPMEMBER", net_rap_groupmember_usage},
|
||||||
{"ADMIN", net_rap_admin_usage},
|
{"ADMIN", net_rap_admin_usage},
|
||||||
|
@ -732,17 +732,7 @@ int net_rap_user(int argc, const char **argv)
|
|||||||
|
|
||||||
int net_rap_group_usage(int argc, const char **argv)
|
int net_rap_group_usage(int argc, const char **argv)
|
||||||
{
|
{
|
||||||
d_printf("net rap group [misc. options] [targets]"\
|
return net_help_group(argc, argv);
|
||||||
"\n\tList user groups\n");
|
|
||||||
d_printf("\nnet rap group DELETE <name> [misc. options] [targets]"\
|
|
||||||
"\n\tDelete specified group\n");
|
|
||||||
d_printf("\nnet rap group ADD <name> [-C comment] [misc. options]"\
|
|
||||||
" [targets]\n\tCreate specified group\n");
|
|
||||||
|
|
||||||
net_common_flags_usage(argc, argv);
|
|
||||||
d_printf(
|
|
||||||
"\t-C or --comment=<comment>\tdescriptive comment (for add only)\n");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void long_group_fn(const char *group_name, const char *comment,
|
static void long_group_fn(const char *group_name, const char *comment,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user