From 1458b7c7959be7720162fef441025954f0082fe9 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Fri, 5 Apr 2002 01:36:28 +0000 Subject: Lots more net consistency work: - Added net_help.c for unified help when possible - Added net rpc user listing, delete, info commands - Unified net user command to autodetect ads/rpc/rap (try in that order) - Added generic routine for detecting rpc (protocol > PROTOCOL_NT1) - I'm sure I forgot something. (This used to be commit 9daa5788c822cf1ad20dc703e7f03b9ee82987bf) --- source3/utils/net_rap.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'source3/utils/net_rap.c') diff --git a/source3/utils/net_rap.c b/source3/utils/net_rap.c index 13180c47c5..a6b199fd88 100644 --- a/source3/utils/net_rap.c +++ b/source3/utils/net_rap.c @@ -605,20 +605,9 @@ int net_rap_printq(int argc, const char **argv) } -int net_rap_user_usage(int argc, const char **argv) +static int net_rap_user_usage(int argc, const char **argv) { - d_printf("\nnet rap user [misc. options] [targets]\n\tList users\n"); - d_printf("\nnet rap user DELETE [misc. options] [targets]"\ - "\n\tDelete specified user\n"); - d_printf("\nnet rap user INFO [misc. options] [targets]"\ - "\n\tList the domain groups of the specified user\n"); - d_printf("\nnet rap user ADD [-F user flags] [misc. options]"\ - " [targets]\n\tAdd specified user\n"); - - net_common_flags_usage(argc, argv); - d_printf( - "\t-C or --comment=\tdescriptive comment (for add only)\n"); - return -1; + return net_help_user(argc, argv); } static void user_fn(const char *user_name, const char *comment, -- cgit