From e393f4746501380cfa255654d5d4f081181f10df Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 13 Jan 2006 10:41:54 +0000 Subject: [PATCH] allow slapo-chain to be instantiated without any specific config statement... --- servers/slapd/back-ldap/chain.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 ); } -- 2.39.5