allow slapo-chain to be instantiated without any specific config statement...

This commit is contained in:
Pierangelo Masarati 2006-01-13 10:41:54 +00:00
parent 48c34d254f
commit e393f47465

View file

@ -1500,6 +1500,9 @@ static int
ldap_chain_db_open(
BackendDB *be )
{
slap_overinst *on = (slap_overinst *) be->bd_info;
ldap_chain_t *lc = (ldap_chain_t *)on->on_bi.bi_private;
#ifdef LDAP_CONTROL_X_CHAINING_BEHAVIOR
int rc = 0;
@ -1509,6 +1512,13 @@ ldap_chain_db_open(
}
#endif /* LDAP_CONTROL_X_CHAINING_BEHAVIOR */
if ( lc->lc_common_li == NULL ) {
void *be_private = be->be_private;
ldap_chain_db_init_common( be );
lc->lc_common_li = lc->lc_cfg_li = (ldapinfo_t *)be->be_private;
be->be_private = be_private;
}
return ldap_chain_db_func( be, db_open );
}