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
5b3ce2a1
Commit
5b3ce2a1
authored
14 years ago
by
Howard Chu
Committed by
Quanah Gibson-Mount
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add response message for overlays
parent
9c6a5df8
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/back-sock/config.c
+22
-1
22 additions, 1 deletion
servers/slapd/back-sock/config.c
with
22 additions
and
1 deletion
servers/slapd/back-sock/config.c
+
22
−
1
View file @
5b3ce2a1
...
...
@@ -31,6 +31,7 @@
static
ConfigDriver
bs_cf_gen
;
static
int
sock_over_setup
();
static
slap_response
sock_over_response
;
enum
{
BS_EXT
=
1
...
...
@@ -185,11 +186,31 @@ static int sock_over_op(
}
static
int
sock_over_response
(
Operati
i
on
*
op
,
SlapReply
*
rs
)
sock_over_response
(
Operation
*
op
,
SlapReply
*
rs
)
{
slap_overinst
*
on
=
(
slap_overinst
*
)
op
->
o_bd
->
bd_info
;
struct
sockinfo
*
si
=
(
struct
sockinfo
*
)
on
->
on_bi
.
bi_private
;
FILE
*
fp
;
if
(
rs
->
sr_type
!=
REP_RESULT
)
return
SLAP_CB_CONTINUE
;
if
((
fp
=
opensock
(
si
->
si_sockpath
))
==
NULL
)
return
SLAP_CB_CONTINUE
;
/* write out the result */
fprintf
(
fp
,
"RESULT
\n
"
);
fprintf
(
fp
,
"msgid: %ld
\n
"
,
(
long
)
op
->
o_msgid
);
sock_print_conn
(
fp
,
op
->
o_conn
,
si
);
fprintf
(
fp
,
"code: %d
\n
"
,
rs
->
sr_err
);
if
(
rs
->
sr_matched
)
fprintf
(
fp
,
"matched: %s
\n
"
,
rs
->
sr_matched
);
if
(
rs
->
sr_text
)
fprintf
(
fp
,
"info: %s
\n
"
,
rs
->
sr_text
);
fprintf
(
fp
,
"
\n
"
);
fclose
(
fp
);
return
SLAP_CB_CONTINUE
;
}
static
int
...
...
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