summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/dsdb_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/dsdb_cache.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/dsdb_cache.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/dsdb_cache.c b/source4/dsdb/samdb/ldb_modules/dsdb_cache.c
index b7e4fca858..2a1b29d966 100644
--- a/source4/dsdb/samdb/ldb_modules/dsdb_cache.c
+++ b/source4/dsdb/samdb/ldb_modules/dsdb_cache.c
@@ -36,7 +36,12 @@ static int dsdb_cache_init(struct ldb_module *module)
return ldb_next_init(module);
}
-_PUBLIC_ const struct ldb_module_ops ldb_dsdb_cache_module_ops = {
+static const struct ldb_module_ops ldb_dsdb_cache_module_ops = {
.name = "dsdb_cache",
.init_context = dsdb_cache_init
};
+
+int ldb_dsdb_cache_module_init(const char *version)
+{
+ return ldb_register_module(&ldb_dsdb_cache_module_ops);
+}