summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_net.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-08-22 22:48:54 +0000
committerAndrew Tridgell <tridge@samba.org>2002-08-22 22:48:54 +0000
commit2a505d023f95457f63a3975e386b95e8658928f4 (patch)
tree51bd076cb7fdab5bbb971ff6a145cb1da2574101 /source3/rpc_parse/parse_net.c
parenta10519049eaff027056e82440444638b68b8cf3a (diff)
downloadsamba-2a505d023f95457f63a3975e386b95e8658928f4.tar.gz
samba-2a505d023f95457f63a3975e386b95e8658928f4.tar.bz2
samba-2a505d023f95457f63a3975e386b95e8658928f4.zip
added a 'net rpc samdump' command for dumping the whole sam via
samsync operations (as a BDC) (This used to be commit e4cb106d2e3e6a41529369545a7a6ce5fe6d8986)
Diffstat (limited to 'source3/rpc_parse/parse_net.c')
-rw-r--r--source3/rpc_parse/parse_net.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/rpc_parse/parse_net.c b/source3/rpc_parse/parse_net.c
index 7f8d1953d1..52cbc8e8df 100644
--- a/source3/rpc_parse/parse_net.c
+++ b/source3/rpc_parse/parse_net.c
@@ -1690,7 +1690,8 @@ makes a NET_Q_SAM_SYNC structure.
********************************************************************/
BOOL init_net_q_sam_sync(NET_Q_SAM_SYNC * q_s, const char *srv_name,
const char *cli_name, DOM_CRED *cli_creds,
- DOM_CRED *ret_creds, uint32 database_id)
+ DOM_CRED *ret_creds, uint32 database_id,
+ uint32 next_rid)
{
DEBUG(5, ("init_q_sam_sync\n"));
@@ -1706,8 +1707,8 @@ BOOL init_net_q_sam_sync(NET_Q_SAM_SYNC * q_s, const char *srv_name,
memset(&q_s->ret_creds, 0, sizeof(q_s->ret_creds));
q_s->database_id = database_id;
- q_s->restart_state = 0;
- q_s->sync_context = 0;
+ q_s->restart_state = 4;
+ q_s->sync_context = next_rid;
q_s->max_size = 0xffff;
return True;
@@ -2785,6 +2786,8 @@ BOOL net_io_r_sam_sync(char *desc, uint8 sess_key[16],
if (!prs_uint32("sync_context", ps, depth, &r_s->sync_context))
return False;
+ d_printf("Got sync context %u\n", r_s->sync_context);
+
if (!prs_uint32("ptr_deltas", ps, depth, &r_s->ptr_deltas))
return False;
if (r_s->ptr_deltas != 0)