From ec38098c293ae06565dffc4bc58d72eba2b31ed3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Thu, 20 Oct 2011 22:00:15 +0200 Subject: [PATCH] s4:partition LDB module - fix handling regarding special DNs on searches MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Normally they should always be passed to the main backend unless something different has been specified. Reviewed-by: abartlet Autobuild-User: Matthias Dieter Wallnöfer Autobuild-Date: Tue Nov 15 22:43:06 CET 2011 on sn-devel-104 --- source4/dsdb/samdb/ldb_modules/partition.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source4/dsdb/samdb/ldb_modules/partition.c b/source4/dsdb/samdb/ldb_modules/partition.c index 92918c798d9..7bf109c7f68 100644 --- a/source4/dsdb/samdb/ldb_modules/partition.c +++ b/source4/dsdb/samdb/ldb_modules/partition.c @@ -585,6 +585,11 @@ static int partition_search(struct ldb_module *module, struct ldb_request *req) return ldb_next_request(module, req); } + /* Special DNs without specified partition should go further */ + if (ldb_dn_is_special(req->op.search.base)) { + return ldb_next_request(module, req); + } + /* Locate the options */ domain_scope = (search_options && (search_options->search_options & LDB_SEARCH_OPTION_DOMAIN_SCOPE)) -- 2.34.1