summaryrefslogtreecommitdiff
path: root/source3/utils/net_rap.c
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2002-04-05 01:36:28 +0000
committerJim McDonough <jmcd@samba.org>2002-04-05 01:36:28 +0000
commit1458b7c7959be7720162fef441025954f0082fe9 (patch)
tree008111ed84f2880495daff3930255f11e7fba9cd /source3/utils/net_rap.c
parent05f973df826911159bb9ea57a2641acd57fdd30d (diff)
downloadsamba-1458b7c7959be7720162fef441025954f0082fe9.tar.gz
samba-1458b7c7959be7720162fef441025954f0082fe9.tar.bz2
samba-1458b7c7959be7720162fef441025954f0082fe9.zip
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)
Diffstat (limited to 'source3/utils/net_rap.c')
-rw-r--r--source3/utils/net_rap.c15
1 files changed, 2 insertions, 13 deletions
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 <name> [misc. options] [targets]"\
- "\n\tDelete specified user\n");
- d_printf("\nnet rap user INFO <name> [misc. options] [targets]"\
- "\n\tList the domain groups of the specified user\n");
- d_printf("\nnet rap user ADD <name> [-F user flags] [misc. options]"\
- " [targets]\n\tAdd specified user\n");
-
- net_common_flags_usage(argc, argv);
- d_printf(
- "\t-C or --comment=<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,