From: Ondřej Kuzník Date: Mon, 13 May 2019 10:46:19 +0000 (+0100) Subject: ITS#8799 Let the common backend be configured through cn=config X-Git-Tag: OPENLDAP_REL_ENG_2_4_48~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45f2c3dc8a23eeb38f02992ef87700036a018291;p=thirdparty%2Fopenldap.git ITS#8799 Let the common backend be configured through cn=config --- diff --git a/servers/slapd/back-ldap/chain.c b/servers/slapd/back-ldap/chain.c index b1d01ff8b2..20b0cf9aca 100644 --- a/servers/slapd/back-ldap/chain.c +++ b/servers/slapd/back-ldap/chain.c @@ -1332,7 +1332,7 @@ chain_ldadd( CfEntryInfo *p, Entry *e, ConfigArgs *ca ) } else #endif - if ( lc->lc_common_li != NULL && at == NULL ) { + if ( lc->lc_common_li != NULL && lc->lc_common_li != lc->lc_cfg_li && at == NULL ) { /* FIXME: we should generate an empty default entry * if none is supplied */ Debug( LDAP_DEBUG_ANY, "slapd-chain: " @@ -1352,6 +1352,7 @@ chain_ldadd( CfEntryInfo *p, Entry *e, ConfigArgs *ca ) } rc = ldap_chain_db_init_one( ca->be ); + lc->lc_cfg_li = NULL; if ( rc != 0 ) { fail: @@ -1457,6 +1458,8 @@ chain_cfadd( Operation *op, SlapReply *rs, Entry *p, ConfigArgs *ca ) ca->be->be_private = priv; } + lc->lc_cfg_li = NULL; + return 0; }