mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r18799: Prepare query_disp_info to use the next idx from the last result entry
for the enumeration loop (following msdn docs of that call).
Guenther
(This used to be commit 138a921f82
)
This commit is contained in:
parent
a734e98b51
commit
1b7b6e54db
@ -1424,6 +1424,24 @@ void get_query_dispinfo_params(int loop_count, uint32 *max_entries,
|
||||
|
||||
/* Query display info */
|
||||
|
||||
static uint32 get_next_idx(SAMR_R_QUERY_DISPINFO *r)
|
||||
{
|
||||
switch (r->switch_level) {
|
||||
case 1:
|
||||
return r->ctr->sam.info1->sam[r->num_entries-1].user_idx;
|
||||
case 2:
|
||||
return r->ctr->sam.info2->sam[r->num_entries-1].user_idx;
|
||||
case 3:
|
||||
return r->ctr->sam.info3->sam[r->num_entries-1].grp_idx;
|
||||
case 4:
|
||||
return r->ctr->sam.info4->sam[r->num_entries-1].user_idx;
|
||||
case 5:
|
||||
return r->ctr->sam.info5->sam[r->num_entries-1].grp_idx;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
NTSTATUS rpccli_samr_query_dispinfo(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
POLICY_HND *domain_pol, uint32 *start_idx,
|
||||
|
Loading…
Reference in New Issue
Block a user