From: Pierangelo Masarati Date: Fri, 13 Jan 2006 10:41:54 +0000 (+0000) Subject: allow slapo-chain to be instantiated without any specific config statement... X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~330 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e393f4746501380cfa255654d5d4f081181f10df;p=openldap allow slapo-chain to be instantiated without any specific config statement... --- diff --git a/servers/slapd/back-ldap/chain.c b/servers/slapd/back-ldap/chain.c index 64f5bb5fc3..ddcc2a231c 100644 --- a/servers/slapd/back-ldap/chain.c +++ b/servers/slapd/back-ldap/chain.c @@ -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 ); }