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
Jaak Ristioja
OpenLDAP
Commits
5a920206
Commit
5a920206
authored
20 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
more cleanup
parent
6fdb803b
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-ldap/search.c
+5
-4
5 additions, 4 deletions
servers/slapd/back-ldap/search.c
servers/slapd/overlays/chain.c
+7
-0
7 additions, 0 deletions
servers/slapd/overlays/chain.c
with
12 additions
and
4 deletions
servers/slapd/back-ldap/search.c
+
5
−
4
View file @
5a920206
...
...
@@ -498,7 +498,8 @@ ldap_back_entry_get(
{
struct
ldapconn
*
lc
;
int
rc
=
1
,
is_oc
;
is_oc
,
do_not_cache
;
struct
berval
bdn
;
LDAPMessage
*
result
=
NULL
,
*
e
=
NULL
;
...
...
@@ -509,17 +510,17 @@ ldap_back_entry_get(
int
do_retry
=
1
;
/* Tell getconn this is a privileged op */
is_oc
=
op
->
o_do_not_cache
;
do_not_cache
=
op
->
o_do_not_cache
;
op
->
o_do_not_cache
=
1
;
lc
=
ldap_back_getconn
(
op
,
&
rs
);
oconn
=
op
->
o_conn
;
op
->
o_conn
=
NULL
;
if
(
!
lc
||
!
ldap_back_dobind
(
lc
,
op
,
&
rs
)
)
{
op
->
o_do_not_cache
=
is_oc
;
op
->
o_do_not_cache
=
do_not_cache
;
op
->
o_conn
=
oconn
;
return
1
;
}
op
->
o_do_not_cache
=
is_oc
;
op
->
o_do_not_cache
=
do_not_cache
;
op
->
o_conn
=
oconn
;
if
(
at
)
{
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/overlays/chain.c
+
7
−
0
View file @
5a920206
...
...
@@ -114,6 +114,13 @@ ldap_chain_response( Operation *op, SlapReply *rs )
op
->
o_callback
=
NULL
;
if
(
lip
->
url
==
NULL
)
{
/* if we parse the URI then by no means
* we can cache stuff or reuse connections,
* because in back-ldap there's no caching
* based on the URI value, which is supposed
* to be set once for all (correct?) */
op
->
o_do_not_cache
=
1
;
/* FIXME: we're setting the URI of the first referral;
* what if there are more? Is this something we should
* worry about? */
...
...
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