This call needs to be done at the very first chance, in this case
during the first call to the lock_read() hook, otherwise the
schema_data module can't find the schema.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13379
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
{
void *priv = ldb_module_get_private(module);
struct rootdse_private_data *data = NULL;
+ struct ldb_context *ldb
+ = ldb_module_get_ctx(module);
if (priv != NULL) {
data = talloc_get_type_abort(priv,
data->block_anonymous = true;
ldb_module_set_private(module, data);
+
+ ldb_set_default_dns(ldb);
+
return data;
}
return ldb_module_oom(module);
}
- ldb_set_default_dns(ldb);
-
ret = ldb_next_init(module);
if (ret != LDB_SUCCESS) {