Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Oren Tirosh
OpenLDAP
Commits
169c7afc
Commit
169c7afc
authored
22 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
ITS#2453 - Handle computed filters, ignore Undefined filters.
parent
792e9779
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
servers/slapd/back-ldbm/filterindex.c
+21
-0
21 additions, 0 deletions
servers/slapd/back-ldbm/filterindex.c
with
21 additions
and
0 deletions
servers/slapd/back-ldbm/filterindex.c
+
21
−
0
View file @
169c7afc
...
...
@@ -47,6 +47,23 @@ filter_candidates(
result
=
NULL
;
switch
(
f
->
f_choice
)
{
case
SLAPD_FILTER_COMPUTED
:
switch
(
f
->
f_result
)
{
case
SLAPD_COMPARE_UNDEFINED
:
/* This technically is not the same as FALSE, but it
* certainly will produce no matches. list_candidates
* will take care of ignoring this filter.
*/
/* FALLTHRU */
case
LDAP_COMPARE_FALSE
:
result
=
NULL
;
break
;
case
LDAP_COMPARE_TRUE
:
result
=
idl_allids
(
op
->
o_bd
);
break
;
}
break
;
case
SLAPD_FILTER_DN_ONE
:
#ifdef NEW_LOGGING
LDAP_LOG
(
FILTER
,
DETAIL1
,
...
...
@@ -692,6 +709,10 @@ list_candidates(
idl
=
NULL
;
for
(
f
=
flist
;
f
!=
NULL
;
f
=
f
->
f_next
)
{
if
(
f
->
f_choice
==
SLAPD_FILTER_COMPUTED
&&
f
->
f_result
==
SLAPD_COMPARE_UNDEFINED
)
{
continue
;
}
if
(
(
tmp
=
filter_candidates
(
op
,
f
))
==
NULL
&&
ftype
==
LDAP_FILTER_AND
)
{
#ifdef NEW_LOGGING
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment