s4:libnet: use the new generated config from the provision for the self_join
authorStefan Metzmacher <metze@samba.org>
Fri, 21 May 2010 15:33:05 +0000 (17:33 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 22 May 2010 06:41:18 +0000 (08:41 +0200)
This fixes net vampire with the --target-dir option.

metze

source4/libnet/libnet_vampire.c

index d7ffcd79aac74e8ec82fb1a0c6710a8ffb9e3757..d083fc9ba92977e297bea64a6f6b1caa8255ef8b 100644 (file)
@@ -772,7 +772,7 @@ NTSTATUS libnet_Vampire(struct libnet_context *ctx, TALLOC_CTX *mem_ctx,
        set_secrets->key_version_number = join->out.kvno;
        set_secrets->domain_sid = join->out.domain_sid;
        
-       status = provision_store_self_join(ctx, ctx->lp_ctx, ctx->event_ctx, set_secrets, &error_string);
+       status = provision_store_self_join(ctx, s->lp_ctx, ctx->event_ctx, set_secrets, &error_string);
        if (!NT_STATUS_IS_OK(status)) {
                r->out.error_string = talloc_steal(mem_ctx, error_string);
                talloc_free(s);