mirror of
https://github.com/samba-team/samba.git
synced 2025-11-21 12:23:50 +03:00
r10753: don't require every ldb module to implement both a search_bytree() and
a search() function, instead each module now only implements the bytree method, and the expression based search is handled generically by the modules code. This makes for more consistency and less code duplication. fixed the tdb backend to handle BASE searches much more efficiently. They now always only lookup one record, regardless of the search expression
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
e83635941c
commit
7e44f9153c
@@ -620,9 +620,8 @@ static struct ldb_parse_tree *ldb_parse_filter(void *mem_ctx, const char **s)
|
||||
*/
|
||||
struct ldb_parse_tree *ldb_parse_tree(void *mem_ctx, const char *s)
|
||||
{
|
||||
/* allowing NULL makes the _bytree() searches easier */
|
||||
if (s == NULL) {
|
||||
return NULL;
|
||||
if (s == NULL || *s == 0) {
|
||||
s = "(|(objectClass=*)(dn=*))";
|
||||
}
|
||||
|
||||
while (isspace((unsigned char)*s)) s++;
|
||||
|
||||
Reference in New Issue
Block a user