mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
allow slapo-chain to be instantiated without any specific config statement...
This commit is contained in:
parent
48c34d254f
commit
e393f47465
1 changed files with 10 additions and 0 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue