From 92cb49de7757cb181ad0636a7498674eebba2aab Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 1 Jun 2004 14:45:49 +0000 Subject: r964: The max_size field in cli_samr_enum_als_groups is more like an account_control field with indiviual bits what to retrieve. Set this to 0xffff as NT4 usrmgr.exe does to get everything. I'm too lazy (sorry) to get this through to rpc_parse/ etc. Volker (This used to be commit d7239c2611a62873cc9eff296c84e91198a5c552) --- source3/utils/net_rpc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source3/utils') diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index 817ba912b0..41ab5ff8a7 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -1867,8 +1867,14 @@ rpc_group_list_internals(const DOM_SID *domain_sid, const char *domain_name, do { if (!local) break; + /* The max_size field in cli_samr_enum_als_groups is more like + * an account_control field with indiviual bits what to + * retrieve. Set this to 0xffff as NT4 usrmgr.exe does to get + * everything. I'm too lazy (sorry) to get this through to + * rpc_parse/ etc. Volker */ + result = cli_samr_enum_als_groups(cli, mem_ctx, &domain_pol, - &start_idx, max_entries, + &start_idx, 0xffff, &groups, &num_entries); if (!NT_STATUS_IS_OK(result) && -- cgit