Commit 45f2c3dc authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Quanah Gibson-Mount
Browse files

ITS#8799 Let the common backend be configured through cn=config

parent 3825f51b
...@@ -1332,7 +1332,7 @@ chain_ldadd( CfEntryInfo *p, Entry *e, ConfigArgs *ca ) ...@@ -1332,7 +1332,7 @@ chain_ldadd( CfEntryInfo *p, Entry *e, ConfigArgs *ca )
} else } else
#endif #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 /* FIXME: we should generate an empty default entry
* if none is supplied */ * if none is supplied */
Debug( LDAP_DEBUG_ANY, "slapd-chain: " Debug( LDAP_DEBUG_ANY, "slapd-chain: "
...@@ -1352,6 +1352,7 @@ chain_ldadd( CfEntryInfo *p, Entry *e, ConfigArgs *ca ) ...@@ -1352,6 +1352,7 @@ chain_ldadd( CfEntryInfo *p, Entry *e, ConfigArgs *ca )
} }
rc = ldap_chain_db_init_one( ca->be ); rc = ldap_chain_db_init_one( ca->be );
lc->lc_cfg_li = NULL;
if ( rc != 0 ) { if ( rc != 0 ) {
fail: fail:
...@@ -1457,6 +1458,8 @@ chain_cfadd( Operation *op, SlapReply *rs, Entry *p, ConfigArgs *ca ) ...@@ -1457,6 +1458,8 @@ chain_cfadd( Operation *op, SlapReply *rs, Entry *p, ConfigArgs *ca )
ca->be->be_private = priv; ca->be->be_private = priv;
} }
lc->lc_cfg_li = NULL;
return 0; return 0;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment