summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-19 22:39:44 +0200
committerAndrew Bartlett <abartlet@samba.org>2010-09-24 09:25:43 +1000
commit30afa657851ba1785f1ecfb8f684c233b9157cc1 (patch)
tree8cb5e92d76950e6010e2f9f5448ae41f7eda2b7c /source4/dsdb/samdb/ldb_modules
parent29e3806b0e60df2fbadaae248011db7524a71797 (diff)
downloadsamba-30afa657851ba1785f1ecfb8f684c233b9157cc1.tar.gz
samba-30afa657851ba1785f1ecfb8f684c233b9157cc1.tar.bz2
samba-30afa657851ba1785f1ecfb8f684c233b9157cc1.zip
s4:lazy_commit LDB module - the "show_deleted" control is initialised by the "show_deleted" LDB module
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/lazy_commit.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/lazy_commit.c b/source4/dsdb/samdb/ldb_modules/lazy_commit.c
index 5c9c772f08..6a59a967aa 100644
--- a/source4/dsdb/samdb/ldb_modules/lazy_commit.c
+++ b/source4/dsdb/samdb/ldb_modules/lazy_commit.c
@@ -103,22 +103,6 @@ static int unlazy_op(struct ldb_module *module, struct ldb_request *req)
return ldb_next_request(module, new_req);
}
-static int unlazy_init(struct ldb_module *module)
-{
- int ret;
- struct ldb_context *ldb;
- ldb = ldb_module_get_ctx(module);
-
- ret = ldb_mod_register_control(module, LDB_CONTROL_SHOW_DELETED_OID);
- if (ret != LDB_SUCCESS) {
- ldb_debug(ldb, LDB_DEBUG_ERROR,
- "lazy_commit: Unable to register control with rootdse!\n");
- return ldb_operr(ldb);
- }
-
- return ldb_next_init(module);
-}
-
const struct ldb_module_ops ldb_lazy_commit_module_ops = {
.name = "lazy_commit",
.search = unlazy_op,
@@ -128,5 +112,4 @@ const struct ldb_module_ops ldb_lazy_commit_module_ops = {
.rename = unlazy_op,
.request = unlazy_op,
.extended = unlazy_op,
- .init_context = unlazy_init,
};