From 0c298815018325152c0ad0c07089c1977e88af95 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 10 Dec 2001 22:25:21 +0000 Subject: reinstated all the rap commands as top level commands until we get the protocol switch mechanism in place (This used to be commit d20c3717dd58745da082d1b4df7698c6d6c38e6c) --- source3/utils/net.c | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) (limited to 'source3/utils/net.c') diff --git a/source3/utils/net.c b/source3/utils/net.c index 5efd79fa5b..23250552ee 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -260,11 +260,13 @@ static int net_usage(int argc, const char **argv) static int help_usage(int argc, const char **argv) { - d_printf("\n"\ + d_printf( +"\n"\ "Usage: net help \n"\ "\n"\ "Valid functions are:\n"\ -" RPC RAP ADS\n"); +" RPC RAP ADS FILE SHARE SESSION SERVER DOMAIN PRINTQ USER GROUP VALIDATE\n"\ +" GROUPMEMBER ADMIN SERVICE PASSWORD\n"); return -1; } @@ -277,6 +279,21 @@ static int net_help(int argc, const char **argv) {"ADS", net_ads_usage}, {"RAP", net_rap_usage}, {"RPC", net_rpc_usage}, + + {"FILE", net_rap_file_usage}, + {"SHARE", net_rap_share_usage}, + {"SESSION", net_rap_session_usage}, + {"SERVER", net_rap_server_usage}, + {"DOMAIN", net_rap_domain_usage}, + {"PRINTQ", net_rap_printq_usage}, + {"USER", net_rap_user_usage}, + {"GROUP", net_rap_group_usage}, + {"VALIDATE", net_rap_validate_usage}, + {"GROUPMEMBER", net_rap_groupmember_usage}, + {"ADMIN", net_rap_admin_usage}, + {"SERVICE", net_rap_service_usage}, + {"PASSWORD", net_rap_password_usage}, + {"HELP", help_usage}, {NULL, NULL}}; @@ -288,6 +305,22 @@ static struct functable net_func[] = { {"RPC", net_rpc}, {"RAP", net_rap}, {"ADS", net_ads}, + + /* eventually these should auto-choose the transport ... */ + {"FILE", net_rap_file}, + {"SHARE", net_rap_share}, + {"SESSION", net_rap_session}, + {"SERVER", net_rap_server}, + {"DOMAIN", net_rap_domain}, + {"PRINTQ", net_rap_printq}, + {"USER", net_rap_user}, + {"GROUP", net_rap_group}, + {"VALIDATE", net_rap_validate}, + {"GROUPMEMBER", net_rap_groupmember}, + {"ADMIN", net_rap_admin}, + {"SERVICE", net_rap_service}, + {"PASSWORD", net_rap_password}, + {"HELP", net_help}, {NULL, NULL} }; -- cgit