1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/lib/ldb
Andrew Bartlett 88ae60ed18 ldb: One-level search was incorrectly falling back to full DB scan
When no search filter is specified, the code falls back to using
'(|(objectClass=*)(distinguishedName=*)'. ltdb_index_dn() then failed
because matching against '*' is not indexed. The error return then
caused the code to fallback to a full-scan of the DB, which could have a
considerable performance hit.

Instead, we want to continue on and do the ltdb_index_filter() over the
indexed results that were returned.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13448

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2018-05-30 04:23:27 +02:00
..
ABI ldb: version 1.3.2 2018-02-28 04:54:21 +01:00
common ldb: Reset error string before running prepare_commit() hook 2018-05-30 04:23:26 +02:00
docs ldb: make ldb a top level library for Samba 4.0 2011-07-05 17:24:47 +10:00
examples ldb: make ldb a top level library for Samba 4.0 2011-07-05 17:24:47 +10:00
include ldb ldb_index: Add an attriubute flag to require a unique value. 2017-12-10 00:47:29 +01:00
ldb_ldap ldb: allow a timeout of -1 result in no timeout timer at all. 2016-02-17 03:43:22 +01:00
ldb_ldb ldb: Add MDB support to ldb:// 2018-05-23 02:27:12 +02:00
ldb_map lib:ldb: Add FALL_THROUGH statements in ldb_map/ldb_map_outbound.c 2018-03-01 04:37:41 +01:00
ldb_mdb ldb_mdb: Remove implicit read lock and remove transaction counter 2018-05-23 02:27:11 +02:00
ldb_sqlite3 ldb: relatively efficient functions for finding duplicate values 2017-06-15 17:33:10 +02:00
ldb_tdb ldb: One-level search was incorrectly falling back to full DB scan 2018-05-30 04:23:27 +02:00
man man pages: change http://samba.org to https://www.samba.org 2016-12-09 13:10:26 +01:00
modules lib: Hold at most 10 outstanding paged result cookies 2018-05-15 09:37:21 +02:00
nssldb ldb: make ldb a top level library for Samba 4.0 2011-07-05 17:24:47 +10:00
tests ldb: Save a copy of the index result before calling the callbacks. 2018-05-30 04:23:27 +02:00
tools ldb_mdb: Implement the lmdb backend for ldb 2018-05-23 02:27:10 +02:00
web ldb: make ldb a top level library for Samba 4.0 2011-07-05 17:24:47 +10:00
_ldb_text.py pyldb: Split text/byte strings for compatibility with Python 3 2015-11-05 18:04:24 +01:00
configure ldb: make ldb a top level library for Samba 4.0 2011-07-05 17:24:47 +10:00
Doxyfile ldb: make ldb a top level library for Samba 4.0 2011-07-05 17:24:47 +10:00
examples.dox ldb: make ldb a top level library for Samba 4.0 2011-07-05 17:24:47 +10:00
ldb.pc.in ldb: make ldb a top level library for Samba 4.0 2011-07-05 17:24:47 +10:00
mainpage.dox ldb: make ldb a top level library for Samba 4.0 2011-07-05 17:24:47 +10:00
Makefile ldb: make ldb a top level library for Samba 4.0 2011-07-05 17:24:47 +10:00
pyldb_util.c lib/ldb: Additionally accept unicode as string param in Py2 2018-04-30 15:43:19 +02:00
pyldb-util.pc.in lib/ldb: Enable use of a python3 pyldb-util system library 2017-03-10 07:31:10 +01:00
pyldb.c lib/ldb: Additionally accept unicode as string param in Py2 2018-04-30 15:43:19 +02:00
pyldb.h pyldb: protect PyErr_LDB_ERROR_IS_ERR_RAISE() with do {} while(0) 2016-11-23 16:53:28 +01:00
README_gcov.txt ldb: make ldb a top level library for Samba 4.0 2011-07-05 17:24:47 +10:00
wscript Make ldb configuration --disable-python work as intended 2018-05-25 10:01:22 +02:00