svn commit: samba r18799 - in branches/SAMBA_3_0/source/rpc_client:
.
gd at samba.org
gd at samba.org
Thu Sep 21 22:44:32 GMT 2006
Author: gd
Date: 2006-09-21 22:44:32 +0000 (Thu, 21 Sep 2006)
New Revision: 18799
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18799
Log:
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
Modified:
branches/SAMBA_3_0/source/rpc_client/cli_samr.c
Changeset:
Modified: branches/SAMBA_3_0/source/rpc_client/cli_samr.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_client/cli_samr.c 2006-09-21 22:24:53 UTC (rev 18798)
+++ branches/SAMBA_3_0/source/rpc_client/cli_samr.c 2006-09-21 22:44:32 UTC (rev 18799)
@@ -1424,6 +1424,24 @@
/* 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,
More information about the samba-cvs
mailing list