Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tero Saarni
OpenLDAP
Commits
a0f6959b
Commit
a0f6959b
authored
Nov 09, 2012
by
Ralf Haferkamp
Committed by
Quanah Gibson-Mount
Nov 26, 2012
Browse files
ITS#7436 slapo-deref: call overlay_register_control in db_open
parent
b90d37f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/deref.c
View file @
a0f6959b
...
...
@@ -516,6 +516,21 @@ deref_op_search( Operation *op, SlapReply *rs )
return
SLAP_CB_CONTINUE
;
}
static
int
deref_db_open
(
BackendDB
*
be
,
ConfigReply
*
cr
)
{
return
overlay_register_control
(
be
,
LDAP_CONTROL_X_DEREF
);
}
#ifdef SLAP_CONFIG_DELETE
static
int
deref_db_close
(
BackendDB
*
be
,
ConfigReply
*
cr
)
{
overlay_unregister_control
(
be
,
LDAP_CONTROL_X_DEREF
);
return
0
;
}
#endif
/* SLAP_CONFIG_DELETE */
int
deref_initialize
(
void
)
{
...
...
@@ -532,6 +547,10 @@ deref_initialize(void)
}
deref
.
on_bi
.
bi_type
=
"deref"
;
deref
.
on_bi
.
bi_db_open
=
deref_db_open
;
#ifdef SLAP_CONFIG_DELETE
deref
.
on_bi
.
bi_db_close
=
deref_db_close
;
#endif
/* SLAP_CONFIG_DELETE */
deref
.
on_bi
.
bi_op_search
=
deref_op_search
;
return
overlay_register
(
&
deref
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment