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
James Lowden
OpenLDAP
Commits
e07454fa
Commit
e07454fa
authored
4 years ago
by
Howard Chu
Committed by
Quanah Gibson-Mount
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ITS#9353 fix monitor_back_register_database for empty suffix DB
Use the correct database entry instead of the frontendDB entry
parent
ff2ab2e0
No related branches found
Branches containing commit
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
servers/slapd/back-monitor/back-monitor.h
+1
-0
1 addition, 0 deletions
servers/slapd/back-monitor/back-monitor.h
servers/slapd/back-monitor/database.c
+5
-22
5 additions, 22 deletions
servers/slapd/back-monitor/database.c
with
6 additions
and
22 deletions
servers/slapd/back-monitor/back-monitor.h
+
1
−
0
View file @
e07454fa
...
...
@@ -72,6 +72,7 @@ typedef struct monitor_entry_t {
/* NOTE: flags with 0xF0000000U mask are reserved for subsystem internals */
struct
monitor_callback_t
*
mp_cb
;
/* callback sequence */
void
*
mp_private
;
}
monitor_entry_t
;
struct
entry_limbo_t
;
/* in init.c */
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-monitor/database.c
+
5
−
22
View file @
e07454fa
...
...
@@ -345,6 +345,7 @@ monitor_subsys_database_init_one(
mp
->
mp_info
=
ms
;
mp
->
mp_flags
=
ms
->
mss_flags
|
MONITOR_F_SUB
;
mp
->
mp_private
=
be
;
if
(
monitor_cache_add
(
mi
,
e
)
)
{
Debug
(
LDAP_DEBUG_ANY
,
...
...
@@ -446,31 +447,13 @@ monitor_back_register_database_and_overlay(
mp
=
(
monitor_entry_t
*
)
e_database
->
e_private
;
for
(
i
=
-
1
,
ep
=
&
mp
->
mp_children
;
*
ep
;
i
++
)
{
Attribute
*
a
;
a
=
attr_find
(
(
*
ep
)
->
e_attrs
,
slap_schema
.
si_ad_namingContexts
);
if
(
a
)
{
int
j
,
k
;
/* FIXME: RFC 4512 defines namingContexts without an
* equality matching rule, making comparisons
* like this one tricky. We use a_vals and
* be_suffix instead for now.
*/
for
(
j
=
0
;
!
BER_BVISNULL
(
&
a
->
a_vals
[
j
]
);
j
++
)
{
for
(
k
=
0
;
!
BER_BVISNULL
(
&
be
->
be_suffix
[
k
]
);
k
++
)
{
if
(
dn_match
(
&
a
->
a_vals
[
j
],
&
be
->
be_suffix
[
k
]
)
)
{
rc
=
0
;
goto
done
;
}
}
}
}
mp
=
(
monitor_entry_t
*
)(
*
ep
)
->
e_private
;
assert
(
mp
!=
NULL
);
if
(
mp
->
mp_private
==
be
->
bd_self
)
{
rc
=
0
;
goto
done
;
}
ep
=
&
mp
->
mp_next
;
}
...
...
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