diff options
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/partition.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/partition.c b/source4/dsdb/samdb/ldb_modules/partition.c index 6c0d9cdd4e..d022d128e9 100644 --- a/source4/dsdb/samdb/ldb_modules/partition.c +++ b/source4/dsdb/samdb/ldb_modules/partition.c @@ -470,12 +470,14 @@ static int partition_search(struct ldb_module *module, struct ldb_request *req) return ret; } - p = find_partition(data, NULL, req); - if (p != NULL) { - /* the caller specified what partition they want the - * search - just pass it on - */ - return ldb_next_request(p->module, req); + if (!ldb_dn_is_special(req->op.search.base)) { + p = find_partition(data, NULL, req); + if (p != NULL) { + /* the caller specified what partition they want the + * search - just pass it on + */ + return ldb_next_request(p->module, req); + } } /* Get back the search options from the search control, and mark it as |