summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-01-29 06:24:13 +0000
committerTim Potter <tpot@samba.org>2003-01-29 06:24:13 +0000
commit7634efbfec5abb074f2ceab0a79d67b93e2c0dd9 (patch)
tree031f6cf99ff76a704df97bd1a7fbee725bb9ed96 /source3/utils
parentc21af45555b110adabd67bce2f34ed9ea6159a30 (diff)
downloadsamba-7634efbfec5abb074f2ceab0a79d67b93e2c0dd9.tar.gz
samba-7634efbfec5abb074f2ceab0a79d67b93e2c0dd9.tar.bz2
samba-7634efbfec5abb074f2ceab0a79d67b93e2c0dd9.zip
Use new interface for cli_samr_query_dispinfo().
(This used to be commit d3962da61a5717dda7e99996bbeb4735d4373041)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index 60adcfdf6e..922fc027e6 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -779,7 +779,7 @@ rpc_user_list_internals(const DOM_SID *domain_sid, struct cli_state *cli,
{
POLICY_HND connect_pol, domain_pol;
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
- uint32 start_idx=0, max_entries=250, num_entries, i;
+ uint32 start_idx=0, num_entries, i, loop_count = 0;
SAM_DISPINFO_CTR ctr;
SAM_DISPINFO_1 info1;
@@ -809,9 +809,16 @@ rpc_user_list_internals(const DOM_SID *domain_sid, struct cli_state *cli,
"\n-----------------------------\n");
do {
fstring user, desc;
+ uint32 max_entries, max_size;
+
+ get_query_dispinfo_params(
+ loop_count, &max_entries, &max_size);
+
result = cli_samr_query_dispinfo(cli, mem_ctx, &domain_pol,
&start_idx, 1, &num_entries,
- max_entries, &ctr);
+ max_entries, max_size, &ctr);
+ loop_count++;
+
for (i = 0; i < num_entries; i++) {
unistr2_to_ascii(user, &(&ctr.sam.info1->str[i])->uni_acct_name, sizeof(user)-1);
if (opt_long_list_entries)