diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-01-08 09:00:15 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-01-08 13:03:06 +1100 |
commit | 5d6032eb4b3e77240d2eccf7c644d1a30da89c78 (patch) | |
tree | 5064a07944bde368d676635d35870d9a31369ae3 /source4/dsdb/samdb | |
parent | 59f314d321bb276ebdf2da3017b6a5d3b79d13e2 (diff) | |
download | samba-5d6032eb4b3e77240d2eccf7c644d1a30da89c78.tar.gz samba-5d6032eb4b3e77240d2eccf7c644d1a30da89c78.tar.xz samba-5d6032eb4b3e77240d2eccf7c644d1a30da89c78.zip |
s4-partition: fixed selection of partitions on exact match
When a search is on the root of a partition on the global catalog,
don't search partitions above that one.
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/partition.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/partition.c b/source4/dsdb/samdb/ldb_modules/partition.c index b879bc4106..59e7fab393 100644 --- a/source4/dsdb/samdb/ldb_modules/partition.c +++ b/source4/dsdb/samdb/ldb_modules/partition.c @@ -524,9 +524,7 @@ static int partition_search(struct ldb_module *module, struct ldb_request *req) */ if (ldb_dn_compare(data->partitions[i]->ctrl->dn, req->op.search.base) == 0) { match = true; - if (req->op.search.scope == LDB_SCOPE_BASE) { - stop = true; - } + stop = true; } if (!match && (ldb_dn_compare_base(req->op.search.base, data->partitions[i]->ctrl->dn) == 0 && |