summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/kludge_acl.c
diff options
context:
space:
mode:
authorNadezhda Ivanova <nadezhda.ivanova@postpath.com>2009-11-21 18:40:51 +0200
committerNadezhda Ivanova <nadezhda.ivanova@postpath.com>2009-11-21 18:40:51 +0200
commite00281d1f15d342bdfe850d30694e67749075a5d (patch)
tree39fd2ad1944fd0bbaa2ed09617ab5daeebc07db4 /source4/dsdb/samdb/ldb_modules/kludge_acl.c
parente406c17b2fce57fff112354df5f5bd1a4655b3d6 (diff)
downloadsamba-e00281d1f15d342bdfe850d30694e67749075a5d.tar.gz
samba-e00281d1f15d342bdfe850d30694e67749075a5d.tar.bz2
samba-e00281d1f15d342bdfe850d30694e67749075a5d.zip
Implemented LDAP_SERVER_SD_FLAGS_OID on search requests.
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/kludge_acl.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/kludge_acl.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/kludge_acl.c b/source4/dsdb/samdb/ldb_modules/kludge_acl.c
index 0cec95b1c2..7a51aa1802 100644
--- a/source4/dsdb/samdb/ldb_modules/kludge_acl.c
+++ b/source4/dsdb/samdb/ldb_modules/kludge_acl.c
@@ -314,8 +314,6 @@ static int kludge_acl_search(struct ldb_module *module, struct ldb_request *req)
struct kludge_private_data *data;
const char * const *attrs;
int ret, i;
- struct ldb_control *sd_control;
- struct ldb_control **sd_saved_controls;
ldb = ldb_module_get_ctx(module);
@@ -382,17 +380,6 @@ static int kludge_acl_search(struct ldb_module *module, struct ldb_request *req)
return ret;
}
- /* check if there's an SD_FLAGS control */
- sd_control = ldb_request_get_control(down_req, LDB_CONTROL_SD_FLAGS_OID);
- if (sd_control) {
- /* save it locally and remove it from the list */
- /* we do not need to replace them later as we
- * are keeping the original req intact */
- if (!save_controls(sd_control, down_req, &sd_saved_controls)) {
- return LDB_ERR_OPERATIONS_ERROR;
- }
- }
-
/* perform the search */
return ldb_next_request(module, down_req);
}
@@ -512,13 +499,6 @@ static int kludge_acl_init(struct ldb_module *module)
}
data->password_attrs[i] = NULL;
- ret = ldb_mod_register_control(module, LDB_CONTROL_SD_FLAGS_OID);
- if (ret != LDB_SUCCESS) {
- ldb_debug(ldb, LDB_DEBUG_ERROR,
- "kludge_acl: Unable to register control with rootdse!\n");
- return LDB_ERR_OPERATIONS_ERROR;
- }
-
done:
talloc_free(mem_ctx);
return ldb_next_init(module);