From d42160f9de385693f12c54bf6c53652e64d113cb Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 18 Jul 2008 00:18:40 +0200 Subject: dssync: allow replications of a single obj with net rpc vampire keytab. This is triggered by setting the new "single" flag in the dssync_context and filling the "object_dn" member with the dn of the object to be fetched. This call is accomplished by specifying the DRSUAPI_EXOP_REPL_OBJ extended operation in the DsGetNCCHanges request. This variant does honor an up-to-date-ness vectore passed in, but the answer does not return a new up-to-dateness vector. Call this operation as "net rpc vampire keytab /path/keytab object_dn" . Michael (This used to be commit f4a01178a3d8d71f416a3b67ce6b872420f211c0) --- source3/utils/net_rpc_samsync.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/utils') diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c index 2dd849df34..11ada717da 100644 --- a/source3/utils/net_rpc_samsync.c +++ b/source3/utils/net_rpc_samsync.c @@ -299,6 +299,10 @@ static NTSTATUS rpc_vampire_keytab_ds_internals(struct net_context *c, if (argc >= 1) { ctx->output_filename = argv[0]; } + if (argc >= 2) { + ctx->object_dn = argv[1]; + ctx->single = true; + } ctx->cli = pipe_hnd; ctx->domain_name = domain_name; -- cgit