fix slapo-chain startup issue when using back-config, related to ITS#6540

This commit is contained in:
Pierangelo Masarati 2010-11-14 23:53:54 +00:00
parent d25e261490
commit 001b30ebc6

View File

@ -1265,6 +1265,7 @@ chain_ldadd( CfEntryInfo *p, Entry *e, ConfigArgs *ca )
assert( rc == LDAP_SUCCESS );
at = attr_find( e->e_attrs, ad );
#if 0
if ( lc->lc_common_li == NULL && at != NULL ) {
/* FIXME: we should generate an empty default entry
* if none is supplied */
@ -1275,7 +1276,9 @@ chain_ldadd( CfEntryInfo *p, Entry *e, ConfigArgs *ca )
rc = LDAP_CONSTRAINT_VIOLATION;
goto done;
} else if ( lc->lc_common_li != NULL && at == NULL ) {
} else
#endif
if ( lc->lc_common_li != NULL && at == NULL ) {
/* FIXME: we should generate an empty default entry
* if none is supplied */
Debug( LDAP_DEBUG_ANY, "slapd-chain: "