summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-07-31 23:05:45 +0200
committerMichael Adam <obnox@samba.org>2008-08-01 16:07:59 +0200
commit03b6502dc69647e4410eca5bcf0f93fd5eba3fa9 (patch)
tree8b0cf93b10c445ff966b4fac828f5eea188a4645 /source3/utils
parentefd89b46d6a66e4a4d17e7cdc400e9e3890b7970 (diff)
downloadsamba-03b6502dc69647e4410eca5bcf0f93fd5eba3fa9.tar.gz
samba-03b6502dc69647e4410eca5bcf0f93fd5eba3fa9.tar.bz2
samba-03b6502dc69647e4410eca5bcf0f93fd5eba3fa9.zip
vampire keytab: introduce switch --single-obj-repl.
This controls whether single object replication is to be used. This only has an effect when at least one object dn is given on the commandline. NOTE: Now the default is to use normal replication with uptodateness vectors and use object dns given on the command line as a positive write filter. Single object replication is only performed when this new switch is specified. Michael (This used to be commit 0f81111ea8c049eb60f98d4939e520a5a562d2e6)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net.c1
-rw-r--r--source3/utils/net.h1
-rw-r--r--source3/utils/net_rpc_samsync.c3
3 files changed, 4 insertions, 1 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c
index 8a5893266f..a38e3ce2d4 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -654,6 +654,7 @@ static struct functable net_func[] = {
{"tallocreport", 0, POPT_ARG_NONE, &c->do_talloc_report},
/* Options for 'net rpc vampire (keytab)' */
{"force-full-repl", 0, POPT_ARG_NONE, &c->opt_force_full_repl},
+ {"single-obj-repl", 0, POPT_ARG_NONE, &c->opt_single_obj_repl},
POPT_COMMON_SAMBA
{ 0, 0, 0, 0}
diff --git a/source3/utils/net.h b/source3/utils/net.h
index 5dd5a3501d..b3fc0eb92c 100644
--- a/source3/utils/net.h
+++ b/source3/utils/net.h
@@ -58,6 +58,7 @@ struct net_context {
int opt_testmode;
bool opt_kerberos;
int opt_force_full_repl;
+ int opt_single_obj_repl;
int opt_have_ip;
struct sockaddr_storage opt_dest_ip;
diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c
index 3731edaaf1..14449d5f49 100644
--- a/source3/utils/net_rpc_samsync.c
+++ b/source3/utils/net_rpc_samsync.c
@@ -304,7 +304,8 @@ static NTSTATUS rpc_vampire_keytab_ds_internals(struct net_context *c,
if (argc >= 2) {
ctx->object_dns = &argv[1];
ctx->object_count = argc - 1;
- ctx->single_object_replication = true;
+ ctx->single_object_replication = c->opt_single_obj_repl ? true
+ : false;
}
ctx->cli = pipe_hnd;