summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-08-03 01:08:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:00:23 -0500
commit3ada346cbea6a3710cdb6d0ce81a9d95edca156e (patch)
treeb2f900ed9b4deccf9c4eef670a3dc9f6fd09c389
parent78d6fa7277fadc77d80c400d3a38114a9e296d12 (diff)
downloadsamba-3ada346cbea6a3710cdb6d0ce81a9d95edca156e.tar.gz
samba-3ada346cbea6a3710cdb6d0ce81a9d95edca156e.tar.bz2
samba-3ada346cbea6a3710cdb6d0ce81a9d95edca156e.zip
r8971: Fix querydispinfo (still need to look at enumdomusers) to allow to list
more then 511 users. After the rewrite, the old NT_STATUS-semantics didn't fit any longer. Guenther (This used to be commit 690da51d835fd780b16d8ce6521957146c90da78)
-rw-r--r--source3/rpc_server/srv_samr_nt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 2e73db2807..431c672dd4 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -808,7 +808,7 @@ NTSTATUS _samr_query_dispinfo(pipes_struct *p, SAMR_Q_QUERY_DISPINFO *q_u,
struct samr_displayentry *entries = NULL;
DEBUG(5, ("samr_reply_query_dispinfo: %d\n", __LINE__));
- r_u->status = NT_STATUS_OK;
+ r_u->status = NT_STATUS_UNSUCCESSFUL;
/* find the policy handle. open a policy on it. */
if (!find_policy_by_hnd(p, &q_u->domain_pol, (void **)&info))
@@ -951,8 +951,10 @@ NTSTATUS _samr_query_dispinfo(pipes_struct *p, SAMR_Q_QUERY_DISPINFO *q_u,
/* calculate the total size */
total_data_size=num_account*struct_size;
- if (enum_context+max_entries < num_account)
+ if (num_account)
r_u->status = STATUS_MORE_ENTRIES;
+ else
+ r_u->status = NT_STATUS_OK;
DEBUG(5, ("_samr_query_dispinfo: %d\n", __LINE__));