summaryrefslogtreecommitdiffstats
path: root/source/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
commite4cb106d2e3e6a41529369545a7a6ce5fe6d8986 (patch)
treee2d5d464b714935d6e7569cec381b3a879bc6c44 /source/rpc_parse/parse_net.c
parentf4581133649b5208d8f91c4995ef60579e04b6f6 (diff)
downloadsamba-e4cb106d2e3e6a41529369545a7a6ce5fe6d8986.tar.gz
samba-e4cb106d2e3e6a41529369545a7a6ce5fe6d8986.tar.xz
samba-e4cb106d2e3e6a41529369545a7a6ce5fe6d8986.zip
added a 'net rpc samdump' command for dumping the whole sam via
samsync operations (as a BDC)
Diffstat (limited to 'source/rpc_parse/parse_net.c')
-rw-r--r--source/rpc_parse/parse_net.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/rpc_parse/parse_net.c b/source/rpc_parse/parse_net.c
index 7f8d1953d1a..52cbc8e8dfa 100644
--- a/source/rpc_parse/parse_net.c
+++ b/source/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)