diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-10-20 22:00:15 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-11-15 22:43:06 +0100 |
commit | ec38098c293ae06565dffc4bc58d72eba2b31ed3 (patch) | |
tree | c49316a59e3cbe0364ba6a8736805991c1d17efb /source4 | |
parent | 793f1a547809172618e5b4071bc9a8160e7c7824 (diff) | |
download | samba-ec38098c293ae06565dffc4bc58d72eba2b31ed3.tar.gz samba-ec38098c293ae06565dffc4bc58d72eba2b31ed3.tar.bz2 samba-ec38098c293ae06565dffc4bc58d72eba2b31ed3.zip |
s4:partition LDB module - fix handling regarding special DNs on searches
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 <mdw@samba.org>
Autobuild-Date: Tue Nov 15 22:43:06 CET 2011 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/partition.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/partition.c b/source4/dsdb/samdb/ldb_modules/partition.c index 92918c798d..7bf109c7f6 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)) |