mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
ITS#3291 delay use of slap_known_controls until all configuration is done
This commit is contained in:
parent
91033d6552
commit
f2ee179c3f
@ -46,14 +46,21 @@ int init_module(int argc, char *argv[]) {
|
||||
|
||||
#endif /* SLAPD_LDAP */
|
||||
|
||||
static int
|
||||
ldap_back_open(
|
||||
BackendInfo *bi
|
||||
)
|
||||
{
|
||||
bi->bi_controls = slap_known_controls;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
ldap_back_initialize(
|
||||
BackendInfo *bi
|
||||
)
|
||||
{
|
||||
bi->bi_controls = slap_known_controls;
|
||||
|
||||
bi->bi_open = 0;
|
||||
bi->bi_open = ldap_back_open;
|
||||
bi->bi_config = 0;
|
||||
bi->bi_close = 0;
|
||||
bi->bi_destroy = 0;
|
||||
|
@ -42,14 +42,21 @@ init_module( int argc, char *argv[] ) {
|
||||
|
||||
#endif /* SLAPD_META */
|
||||
|
||||
static int
|
||||
meta_back_open(
|
||||
BackendInfo *bi
|
||||
)
|
||||
{
|
||||
bi->bi_controls = slap_known_controls;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
meta_back_initialize(
|
||||
BackendInfo *bi
|
||||
)
|
||||
{
|
||||
bi->bi_controls = slap_known_controls;
|
||||
|
||||
bi->bi_open = 0;
|
||||
bi->bi_open = meta_back_open;
|
||||
bi->bi_config = 0;
|
||||
bi->bi_close = 0;
|
||||
bi->bi_destroy = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user