s4-pyjoin: fill in the dns name in the python replication method
[kamenim/samba.git] / source4 / libnet / py_net.c
index 8ff383036e2d2bdfdf29e3104029cb1b97464ab9..c460a06583ab5bc262c6da173f4aa99d999d8458 100644 (file)
@@ -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;