summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-15 09:45:46 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-15 09:46:25 +0100
commit236e6fecdad7d224a86b6c4bf789214e31018da1 (patch)
tree2fd832b4883e53899aafe49fecf26d75ecd338b3 /source4/libnet
parent2611003258255424bc4636b60f5e8a27b02d8a55 (diff)
downloadsamba-236e6fecdad7d224a86b6c4bf789214e31018da1.tar.gz
samba-236e6fecdad7d224a86b6c4bf789214e31018da1.tar.bz2
samba-236e6fecdad7d224a86b6c4bf789214e31018da1.zip
s4:libnet: initialize forest structure in py_net_replicate_init()
metze
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/py_net.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/libnet/py_net.c b/source4/libnet/py_net.c
index 86ee8ca532..ebfb2ba4d2 100644
--- a/source4/libnet/py_net.c
+++ b/source4/libnet/py_net.c
@@ -448,6 +448,9 @@ static PyObject *py_net_replicate_init(py_net_Object *self, PyObject *args, PyOb
}
s->forest.dns_name = samdb_dn_to_dns_domain(s, ldb_get_root_basedn(samdb));
+ s->forest.root_dn_str = ldb_dn_get_linearized(ldb_get_root_basedn(samdb));
+ s->forest.config_dn_str = ldb_dn_get_linearized(ldb_get_config_basedn(samdb));
+ s->forest.schema_dn_str = ldb_dn_get_linearized(ldb_get_schema_basedn(samdb));
s->chunk.gensec_skey = &s->gensec_skey;
s->chunk.partition = &s->partition;