From c06dc95cf9c40acc17c29f941d62e72bc207ccca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Mon, 13 May 2019 11:46:19 +0100 Subject: [PATCH] ITS#8799 Let the common backend be configured through cn=config --- servers/slapd/back-ldap/chain.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-ldap/chain.c b/servers/slapd/back-ldap/chain.c index cf28ec988e..6b5bd04b45 100644 --- a/servers/slapd/back-ldap/chain.c +++ b/servers/slapd/back-ldap/chain.c @@ -1336,7 +1336,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: " @@ -1356,6 +1356,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: @@ -1461,6 +1462,8 @@ chain_cfadd( Operation *op, SlapReply *rs, Entry *p, ConfigArgs *ca ) ca->be->be_private = priv; } + lc->lc_cfg_li = NULL; + return 0; }