Commit 63035a5b authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

allow optional overlays

parent af71dbc4
......@@ -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 */
......
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