From e18c0030e065a70f7291eb269112e9f04d5788dc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 15 Sep 2010 18:50:09 +1000 Subject: s4-pyjoin: fill in the dns name in the python replication method this is needed to get the repsFrom DNS entry right Pair-Programmed-With: Andrew Bartlett --- source4/libnet/libnet_vampire.c | 3 +++ source4/libnet/py_net.c | 2 ++ 2 files changed, 5 insertions(+) (limited to 'source4/libnet') diff --git a/source4/libnet/libnet_vampire.c b/source4/libnet/libnet_vampire.c index 950698d053..1b6a8dd244 100644 --- a/source4/libnet/libnet_vampire.c +++ b/source4/libnet/libnet_vampire.c @@ -106,6 +106,9 @@ void *libnet_vampire_replicate_init(TALLOC_CTX *mem_ctx, s->lp_ctx = lp_ctx; s->provision_schema = dsdb_get_schema(s->ldb, s); s->schema = s->provision_schema; + s->netbios_name = lpcfg_netbios_name(lp_ctx); + s->domain_name = lpcfg_workgroup(lp_ctx); + s->realm = lpcfg_realm(lp_ctx); return s; } diff --git a/source4/libnet/py_net.c b/source4/libnet/py_net.c index 8ff383036e..c460a06583 100644 --- a/source4/libnet/py_net.c +++ b/source4/libnet/py_net.c @@ -376,6 +376,8 @@ static PyObject *py_net_replicate_init(py_net_Object *self, PyObject *args, PyOb return NULL; } + s->forest.dns_name = lpcfg_dnsdomain(lp); + s->chunk.gensec_skey = &s->gensec_skey; s->chunk.partition = &s->partition; s->chunk.forest = &s->forest; -- cgit