From 39e4ee0c5be9f8d5a26b03ae17865b8e576b0b62 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 28 Nov 2003 15:10:00 +0000 Subject: [PATCH] Implement 'net rpc group list [global|local|builtin]*' for a select listing of the respective user databases. Volker --- source/utils/net_help.c | 2 ++ source/utils/net_rpc.c | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/source/utils/net_help.c b/source/utils/net_help.c index 059da4740b7..514cf1af1b2 100644 --- a/source/utils/net_help.c +++ b/source/utils/net_help.c @@ -88,6 +88,8 @@ int net_help_group(int argc, const char **argv) { d_printf("net [] group [misc. options] [targets]"\ "\n\tList user groups\n\n"); + d_printf("net rpc group LIST [global|local|builtin]* [misc. options]"\ + "\n\tList specific user groups\n\n"); d_printf("net [] group DELETE "\ "[misc. options] [targets]"\ "\n\tDelete specified group\n"); diff --git a/source/utils/net_rpc.c b/source/utils/net_rpc.c index 2453355ee3d..75b3726b44e 100644 --- a/source/utils/net_rpc.c +++ b/source/utils/net_rpc.c @@ -916,6 +916,26 @@ rpc_group_list_internals(const DOM_SID *domain_sid, struct cli_state *cli, uint32 start_idx=0, max_entries=250, num_entries, i, loop_count = 0; struct acct_info *groups; DOM_SID global_sid_Builtin; + BOOL global = False; + BOOL local = False; + BOOL builtin = False; + + if (argc == 0) { + global = True; + local = True; + builtin = True; + } + + for (i=0; i