summaryrefslogtreecommitdiff
path: root/source4/rpc_server/drsuapi/drsutil.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-13 13:09:07 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-13 13:09:07 +1100
commit4423173b08ebba1ff8494a4997e46e28525c1d7a (patch)
treefb5f1e291d841ba604d258ac9ca318d13b7886c9 /source4/rpc_server/drsuapi/drsutil.c
parentae507f620ae34b69c5df86980ea6e374c9c1e548 (diff)
downloadsamba-4423173b08ebba1ff8494a4997e46e28525c1d7a.tar.gz
samba-4423173b08ebba1ff8494a4997e46e28525c1d7a.tar.bz2
samba-4423173b08ebba1ff8494a4997e46e28525c1d7a.zip
s4-repl: check that a DsGetNCChanges is a continuation, and fix sorting
When we indicate that a getncchanges request is not complete, we set the more_data flag to true in the response. The client usually then asks for the next block of data. If the client decides it wants to skip that replication and do a different replication then we need to make sure that the next call is in fact a continuation of the existing call, and not a new call. This relies on returning the results sorted by uSNChanged, as the client uses the tmp_highest_usn in each result to see if progress is being made.
Diffstat (limited to 'source4/rpc_server/drsuapi/drsutil.c')
-rw-r--r--source4/rpc_server/drsuapi/drsutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/drsuapi/drsutil.c b/source4/rpc_server/drsuapi/drsutil.c
index 1b4c28c4ab..752861cc26 100644
--- a/source4/rpc_server/drsuapi/drsutil.c
+++ b/source4/rpc_server/drsuapi/drsutil.c
@@ -98,7 +98,7 @@ int drsuapi_search_with_extended_dn(struct ldb_context *ldb,
sort_control[0] = talloc(req, struct ldb_server_sort_control);
sort_control[0]->attributeName = sort_attrib;
sort_control[0]->orderingRule = NULL;
- sort_control[0]->reverse = 1;
+ sort_control[0]->reverse = 0;
sort_control[1] = NULL;
ret = ldb_request_add_control(req, LDB_CONTROL_SERVER_SORT_OID, true, sort_control);