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
05fc9bf6
Commit
05fc9bf6
authored
15 years ago
by
Quanah Gibson-Mount
Browse files
Options
Downloads
Patches
Plain Diff
ITS#6167
parent
0cd17742
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGES
+1
-0
1 addition, 0 deletions
CHANGES
servers/slapd/back-ldap/back-ldap.h
+3
-0
3 additions, 0 deletions
servers/slapd/back-ldap/back-ldap.h
servers/slapd/back-ldap/bind.c
+11
-2
11 additions, 2 deletions
servers/slapd/back-ldap/bind.c
with
15 additions
and
2 deletions
CHANGES
+
1
−
0
View file @
05fc9bf6
...
...
@@ -31,6 +31,7 @@ OpenLDAP 2.4.17 Engineering
Fixed slapd-hdb freeing of already freed entries (ITS#6074)
Fixed slapd-hdb entryinfo cleanup (ITS#6088)
Fixed slapd-hdb dncache lockups (ITS#6095)
Fixed slapd-ldap deadlock with non-responsive TLS URIs (ITS#6167)
Fixed slapd-relay to return failure on failure (ITS#5328)
Fixed slapd-sql with BACKSQL_ARBITRARY_KEY defined (ITS#6100)
Fixed slapo-dds entry expiration (ITS#6169)
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-ldap/back-ldap.h
+
3
−
0
View file @
05fc9bf6
...
...
@@ -245,6 +245,9 @@ typedef struct ldapinfo_t {
* to be checked for the presence of a certain item */
BerVarray
li_bvuri
;
ldap_pvt_thread_mutex_t
li_uri_mutex
;
/* hack because when TLS is used we need to lock and let
* the li_urllist_f function to know it's locked */
int
li_uri_mutex_do_not_lock
;
LDAP_REBIND_PROC
*
li_rebind_f
;
LDAP_URLLIST_PROC
*
li_urllist_f
;
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-ldap/bind.c
+
11
−
2
View file @
05fc9bf6
...
...
@@ -691,8 +691,11 @@ ldap_back_prepare_conn( ldapconn_t *lc, Operation *op, SlapReply *rs, ldap_back_
}
ldap_pvt_thread_mutex_lock
(
&
li
->
li_uri_mutex
);
assert
(
li
->
li_uri_mutex_do_not_lock
==
0
);
li
->
li_uri_mutex_do_not_lock
=
1
;
rs
->
sr_err
=
ldap_back_start_tls
(
ld
,
op
->
o_protocol
,
&
is_tls
,
li
->
li_uri
,
li
->
li_flags
,
li
->
li_nretries
,
&
rs
->
sr_text
);
li
->
li_uri_mutex_do_not_lock
=
0
;
ldap_pvt_thread_mutex_unlock
(
&
li
->
li_uri_mutex
);
if
(
rs
->
sr_err
!=
LDAP_SUCCESS
)
{
ldap_unbind_ext
(
ld
,
NULL
,
NULL
);
...
...
@@ -1581,13 +1584,19 @@ ldap_back_default_urllist(
*
urllist
=
*
url
;
*
url
=
NULL
;
ldap_pvt_thread_mutex_lock
(
&
li
->
li_uri_mutex
);
if
(
!
li
->
li_uri_mutex_do_not_lock
)
{
ldap_pvt_thread_mutex_lock
(
&
li
->
li_uri_mutex
);
}
if
(
li
->
li_uri
)
{
ch_free
(
li
->
li_uri
);
}
ldap_get_option
(
ld
,
LDAP_OPT_URI
,
(
void
*
)
&
li
->
li_uri
);
ldap_pvt_thread_mutex_unlock
(
&
li
->
li_uri_mutex
);
if
(
!
li
->
li_uri_mutex_do_not_lock
)
{
ldap_pvt_thread_mutex_unlock
(
&
li
->
li_uri_mutex
);
}
return
LDAP_SUCCESS
;
}
...
...
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