1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

dssync: add clean_old_entries flag to dssync_ctx.

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 12e884f227)
This commit is contained in:
Michael Adam 2008-08-01 00:09:28 +02:00
parent 52fee9c87a
commit 10225fbef7
3 changed files with 3 additions and 0 deletions

View 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;

View 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;

View 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",