allow optional overlays

This commit is contained in:
Pierangelo Masarati 2004-04-13 18:49:31 +00:00
parent af71dbc4a8
commit 63035a5b5b

View File

@ -979,8 +979,21 @@ read_config( const char *fname, int depth )
#endif
return 1;
} else if ( overlay_config( be, cargv[1] )) {
return 1;
} else {
if ( cargv[1][0] == '-' && overlay_config( be, &cargv[1][1] ) ) {
/* log error */
#ifdef NEW_LOGGING
LDAP_LOG( CONFIG, INFO, "%s: line %d: "
"(optional) overlay \"%s\" configuration "
"failed (ignored)\n", fname, lineno, &cargv[1][1] );
#else
Debug( LDAP_DEBUG_ANY, "%s: line %d: "
"(optional) overlay \"%s\" configuration "
"failed (ignored)\n", fname, lineno, &cargv[1][1] );
#endif
} else if ( overlay_config( be, cargv[1] ) ) {
return 1;
}
}
/* set database suffix */