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
04c57115
Commit
04c57115
authored
25 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
Moved unbind processing into connection_destroy. unbind handler is not needed.
parent
f491c893
No related branches found
Branches containing commit
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
servers/slapd/back-ldap/external.h
+2
-2
2 additions, 2 deletions
servers/slapd/back-ldap/external.h
servers/slapd/back-ldap/init.c
+2
-2
2 additions, 2 deletions
servers/slapd/back-ldap/init.c
servers/slapd/back-ldap/unbind.c
+7
-5
7 additions, 5 deletions
servers/slapd/back-ldap/unbind.c
with
11 additions
and
9 deletions
servers/slapd/back-ldap/external.h
+
2
−
2
View file @
04c57115
...
...
@@ -19,8 +19,8 @@ extern int ldap_back_bind LDAP_P(( BackendDB *bd,
char
*
dn
,
int
method
,
char
*
mech
,
struct
berval
*
cred
,
char
**
edn
));
extern
int
ldap_back_
unbind
LDAP_P
((
BackendDB
*
bd
,
Connection
*
conn
,
Operation
*
op
));
extern
int
ldap_back_
conn_destroy
LDAP_P
((
BackendDB
*
bd
,
Connection
*
conn
));
extern
int
ldap_back_search
LDAP_P
((
BackendDB
*
bd
,
Connection
*
conn
,
Operation
*
op
,
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-ldap/init.c
+
2
−
2
View file @
04c57115
...
...
@@ -61,7 +61,7 @@ ldap_back_initialize(
bi
->
bi_db_destroy
=
ldap_back_db_destroy
;
bi
->
bi_op_bind
=
ldap_back_bind
;
bi
->
bi_op_unbind
=
ldap_back_unbind
;
bi
->
bi_op_unbind
=
0
;
bi
->
bi_op_search
=
ldap_back_search
;
bi
->
bi_op_compare
=
ldap_back_compare
;
bi
->
bi_op_modify
=
ldap_back_modify
;
...
...
@@ -73,7 +73,7 @@ ldap_back_initialize(
bi
->
bi_acl_group
=
0
;
bi
->
bi_connection_init
=
0
;
bi
->
bi_connection_destroy
=
0
;
bi
->
bi_connection_destroy
=
ldap_back_conn_destroy
;
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-ldap/unbind.c
+
7
−
5
View file @
04c57115
...
...
@@ -32,24 +32,26 @@
#include
"back-ldap.h"
int
ldap_back_
unbind
(
ldap_back_
conn_destroy
(
Backend
*
be
,
Connection
*
conn
,
Operation
*
op
Connection
*
conn
)
{
struct
ldapinfo
*
li
=
(
struct
ldapinfo
*
)
be
->
be_private
;
struct
ldapconn
*
lc
,
*
lp
;
ldap_pvt_thread_mutex_lock
(
&
li
->
conn_mutex
);
for
(
lc
=
li
->
lcs
,
lp
=
(
struct
ldapconn
*
)
&
li
->
lcs
;
lc
;
lp
=
lc
,
lc
=
lc
->
next
)
if
(
lc
->
conn
==
conn
)
if
(
lc
->
conn
==
conn
)
{
lp
->
next
=
lc
->
next
;
break
;
}
ldap_pvt_thread_mutex_unlock
(
&
li
->
conn_mutex
);
if
(
lc
)
{
if
(
lc
->
bound
)
ldap_unbind
(
lc
->
ld
);
lp
->
next
=
lc
->
next
;
free
(
lc
);
}
...
...
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