dssync: add clean_old_entries flag to dssync_ctx.
authorMichael Adam <obnox@samba.org>
Thu, 31 Jul 2008 22:09:28 +0000 (00:09 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 1 Aug 2008 14:08:00 +0000 (16:08 +0200)
Initialize it to false.
And pass it down to the libnet_keytab context in
libnet_dssync_keytab.c:keytab_startup().

Unused yet.

Michael

Note: This might not be not 100% clean design to put this into the
toplevel dssync context while it is keytab specific. But then, on the
other hand, other imaginable backends might want to use this flag, too...
(This used to be commit 12e884f227e240860e49f9e41d8c1f45e10ad3be)

source3/libnet/libnet_dssync.c
source3/libnet/libnet_dssync.h
source3/libnet/libnet_dssync_keytab.c

index f1a98f67d308adf7700d973e03e6aa0febbb5400..92000b432b88b4f47c718c70c69c2d9a71ba40b7 100644 (file)
@@ -50,6 +50,7 @@ NTSTATUS libnet_dssync_init_context(TALLOC_CTX *mem_ctx,
        NT_STATUS_HAVE_NO_MEMORY(ctx);
 
        talloc_set_destructor(ctx, libnet_dssync_free_context);
+       ctx->clean_old_entries = false;
 
        *ctx_p = ctx;
 
index c9804fb953f16ac4da684ecf8fd230e4340b7396..5373fbc8dda4a761dda3799741f48d18a28e3242 100644 (file)
@@ -37,6 +37,7 @@ struct dssync_context {
        const char *nc_dn;
        bool single_object_replication;
        bool force_full_replication;
+       bool clean_old_entries;
        uint32_t object_count;
        const char **object_dns;
        struct policy_handle bind_handle;
index 2558e1d8019fb728ae6d0769d1a934e4c9dc7df7..51156cbdba216c9f0f28efb098ad0ba8dadd18a6 100644 (file)
@@ -67,6 +67,7 @@ static NTSTATUS keytab_startup(struct dssync_context *ctx, TALLOC_CTX *mem_ctx,
        }
 
        keytab_ctx->dns_domain_name = ctx->dns_domain_name;
+       keytab_ctx->clean_old_entries = ctx->clean_old_entries;
        ctx->private_data = keytab_ctx;
 
        principal = talloc_asprintf(mem_ctx, "UTDV/%s@%s",