ITS#3291 delay use of slap_known_controls until all configuration is done

This commit is contained in:
Howard Chu 2004-08-19 12:10:22 +00:00
parent 91033d6552
commit f2ee179c3f
2 changed files with 20 additions and 6 deletions

View File

@ -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;

View File

@ -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;