return 0;
}
+
void config_back_init( ConfigFile *cfp, ConfigTable *ct )
{
BackendInfo bi = {0};
bi.bi_init = config_back_initialize;
bi.bi_cf_table = ct;
backend_add( &bi );
- /* FIXME */
- if ( slapMode & SLAP_TOOL_MODE ) {
- return;
- }
be = backend_db_init( bi.bi_type );
ber_str2bv( CONFIG_DN, 0, 1, &be->be_rootdn );
ber_dupbv( &be->be_rootndn, &be->be_rootdn );
break;
case 'n': /* which config file db to index */
- dbnum = atoi( optarg ) - 1;
+ dbnum = atoi( optarg );
break;
case 'q': /* turn on quick */
exit( EXIT_FAILURE );
}
- be = &backends[dbnum=0];
+ be = &backends[dbnum=1];
/* If just doing the first by default and it is a
* glue subordinate, find the master.
*/