Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
Dimitar Stoychev
OpenLDAP
Commits
2fd73195
Commit
2fd73195
authored
21 years ago
by
Jong Hyuk Choi
Browse files
Options
Downloads
Patches
Plain Diff
LCUP / SYNC overrides manageDSAit upon calling select_backend()
parent
e885605f
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
servers/slapd/search.c
+23
-1
23 additions, 1 deletion
servers/slapd/search.c
with
23 additions
and
1 deletion
servers/slapd/search.c
+
23
−
1
View file @
2fd73195
...
...
@@ -43,6 +43,7 @@ do_search(
struct
berval
base
=
{
0
,
NULL
};
ber_len_t
siz
,
off
,
i
;
int
manageDSAit
;
int
be_manageDSAit
;
#ifdef LDAP_SLAPI
char
**
attrs
=
NULL
;
#endif
...
...
@@ -330,7 +331,28 @@ do_search(
* appropriate one, or send a referral to our "referral server"
* if we don't hold it.
*/
if
(
(
op
->
o_bd
=
select_backend
(
&
op
->
o_req_ndn
,
manageDSAit
,
1
))
==
NULL
)
{
/* Sync / LCUP controls override manageDSAit */
if
(
manageDSAit
!=
SLAP_NO_CONTROL
)
{
#ifdef LDAP_CLIENT_UPDATE
if
(
op
->
o_clientupdate_type
&
SLAP_LCUP_SYNC
)
{
be_manageDSAit
=
SLAP_NO_CONTROL
;
}
else
#endif
#ifdef LDAP_SYNC
if
(
op
->
o_sync_mode
&
SLAP_SYNC_REFRESH
)
{
be_manageDSAit
=
SLAP_NO_CONTROL
;
}
else
#endif
{
be_manageDSAit
=
manageDSAit
;
}
}
else
{
be_manageDSAit
=
manageDSAit
;
}
if
(
(
op
->
o_bd
=
select_backend
(
&
op
->
o_req_ndn
,
be_manageDSAit
,
1
))
==
NULL
)
{
rs
->
sr_ref
=
referral_rewrite
(
default_referral
,
NULL
,
&
op
->
o_req_dn
,
op
->
ors_scope
);
...
...
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