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
David Barchiesi
OpenLDAP
Commits
44ad6eb8
Commit
44ad6eb8
authored
14 years ago
by
Quanah Gibson-Mount
Browse files
Options
Downloads
Patches
Plain Diff
ITS#6600
parent
96a068cc
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES
+1
-0
1 addition, 0 deletions
CHANGES
servers/slapd/overlays/pcache.c
+18
-5
18 additions, 5 deletions
servers/slapd/overlays/pcache.c
with
19 additions
and
5 deletions
CHANGES
+
1
−
0
View file @
44ad6eb8
...
...
@@ -8,6 +8,7 @@ OpenLDAP 2.4.24 Engineering
Fixed slapd-bdb entry cache delete failure (ITS#6577)
Fixed slapd-null back-config support (ITS#6624)
Fixed slapo-pcache callback freeing (ITS#6640)
Fixed slapo-pcache to ignore undefined attrs (ITS#6600)
Fixed slapo-ppolicy don't update opattrs on consumers (ITS#6608)
Fixed slapo-syncprov to send error if consumer is newer (ITS#6606)
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/overlays/pcache.c
+
18
−
5
View file @
44ad6eb8
...
...
@@ -3122,19 +3122,30 @@ get_attr_set(
query_manager
*
qm
,
int
num
)
{
int
i
;
int
i
=
0
;
int
count
=
0
;
if
(
attrs
)
{
for
(
;
attrs
[
count
].
an_name
.
bv_val
;
count
++
);
for
(
;
attrs
[
i
].
an_name
.
bv_val
;
i
++
)
{
/* only count valid attribute names
* (searches ignore others, this overlay does the same) */
if
(
attrs
[
i
].
an_desc
)
{
count
++
;
}
}
}
/* recognize a single "*" or a "1.1" */
if
(
count
==
0
)
{
/* recognize default or explicit single "*" */
if
(
!
attrs
||
(
i
==
1
&&
bvmatch
(
&
attrs
[
0
].
an_name
,
slap_bv_all_user_attrs
)
)
)
{
count
=
1
;
attrs
=
slap_anlist_all_user_attributes
;
}
else
if
(
count
==
1
&&
bvmatch
(
&
attrs
[
0
].
an_name
,
slap_bv_no_attrs
)
)
{
/* recognize implicit (no valid attributes) or explicit single "1.1" */
}
else
if
(
count
==
0
||
(
i
==
1
&&
bvmatch
(
&
attrs
[
0
].
an_name
,
slap_bv_no_attrs
)
)
)
{
count
=
0
;
attrs
=
NULL
;
}
...
...
@@ -3155,6 +3166,8 @@ get_attr_set(
}
for
(
a2
=
attrs
;
a2
->
an_name
.
bv_val
;
a2
++
)
{
if
(
!
a2
->
an_desc
&&
!
bvmatch
(
&
a2
->
an_name
,
slap_bv_all_user_attrs
)
)
continue
;
if
(
!
an_find
(
qm
->
attr_sets
[
i
].
attrs
,
&
a2
->
an_name
)
)
{
found
=
0
;
break
;
...
...
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