dsdb: Do not prevent searches for @ATTRIBUTES because the DB is not set up yet
authorAndrew Bartlett <abartlet@samba.org>
Thu, 8 Jun 2017 11:17:20 +0000 (23:17 +1200)
committerStefan Metzmacher <metze@samba.org>
Fri, 16 Jun 2017 17:34:17 +0000 (19:34 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/dsdb/samdb/ldb_modules/show_deleted.c

index 773dcfbf3fbd38dde97c68266de3d3dc7ae775dc..6b5fdaaa2c0eda71282a2a32ecd50bf6eee0c2c6 100644 (file)
@@ -51,6 +51,11 @@ static int show_deleted_search(struct ldb_module *module, struct ldb_request *re
        int ret;
        const char *attr_filter = NULL;
 
+       /* do not manipulate our control entries */
+       if (ldb_dn_is_special(req->op.search.base)) {
+               return ldb_next_request(module, req);
+       }
+
        ldb = ldb_module_get_ctx(module);
 
        state = talloc_get_type(ldb_module_get_private(module), struct show_deleted_state);