diff options
author | Kai Blin <kai@samba.org> | 2008-05-13 12:51:09 +0200 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2008-05-20 14:27:27 +0200 |
commit | 572de942c780910195c124dc2c4a0f2192668321 (patch) | |
tree | 0695c887d5657aa5def5d2909b2f06520b8239a1 /source3/utils/net_help.c | |
parent | 666292129b1cb7df2f3162736d40b53513313139 (diff) | |
download | samba-572de942c780910195c124dc2c4a0f2192668321.tar.gz samba-572de942c780910195c124dc2c4a0f2192668321.tar.bz2 samba-572de942c780910195c124dc2c4a0f2192668321.zip |
net: Split out "net user"
(This used to be commit 4ca08a5acc90c77d56f8f3e38443f23f43f034e8)
Diffstat (limited to 'source3/utils/net_help.c')
-rw-r--r-- | source3/utils/net_help.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/source3/utils/net_help.c b/source3/utils/net_help.c index ed55e91526..a55b0332e2 100644 --- a/source3/utils/net_help.c +++ b/source3/utils/net_help.c @@ -33,28 +33,6 @@ static int help_usage(struct net_context *c, int argc, const char **argv) return -1; } -int net_help_user(struct net_context *c, int argc, const char **argv) -{ - d_printf("\nnet [<method>] user [misc. options] [targets]"\ - "\n\tList users\n\n"); - d_printf("net [<method>] user DELETE <name> [misc. options] [targets]"\ - "\n\tDelete specified user\n"); - d_printf("\nnet [<method>] user INFO <name> [misc. options] [targets]"\ - "\n\tList the domain groups of the specified user\n"); - d_printf("\nnet [<method>] user ADD <name> [password] [-c container] "\ - "[-F user flags] [misc. options]"\ - " [targets]\n\tAdd specified user\n"); - d_printf("\nnet [<method>] user RENAME <oldusername> <newusername>"\ - " [targets]\n\tRename specified user\n\n"); - - - net_common_methods_usage(c, argc, argv); - net_common_flags_usage(c, argc, argv); - d_printf("\t-C or --comment=<comment>\tdescriptive comment (for add only)\n"); - d_printf("\t-c or --container=<container>\tLDAP container, defaults to cn=Users (for add in ADS only)\n"); - return -1; -} - int net_help_group(struct net_context *c, int argc, const char **argv) { d_printf("net [<method>] group [misc. options] [targets]"\ @@ -220,7 +198,7 @@ int net_help(struct net_context *c, int argc, const char **argv) {"SERVER", net_rap_server_usage}, {"DOMAIN", net_rap_domain_usage}, {"PRINTQ", net_rap_printq_usage}, - {"USER", net_help_user}, + {"USER", net_user_usage}, {"GROUP", net_help_group}, {"GROUPMAP", net_help_groupmap}, {"JOIN", net_join_usage}, |