int verbose = 0;
int continuemode = 0;
int nosubordinates = 0;
+int dryrun = 0;
char *ldiffile = NULL;
FILE *ldiffp = NULL;
switch( tool ) {
case SLAPADD:
- options = "b:cd:f:l:n:tv";
+ options = "b:cd:f:l:n:tuv";
break;
case SLAPINDEX:
mode |= SLAP_TRUNCATE_MODE;
break;
+ case 'u': /* dry run */
+ dryrun++;
+ break;
+
case 'v': /* turn on verbose */
verbose++;
break;
exit( EXIT_FAILURE );
}
- read_config( conffile );
+ rc = read_config( conffile );
+
+ if ( rc != 0 ) {
+ fprintf( stderr, "%s: bad configuration file!\n", progname );
+ exit( EXIT_FAILURE );
+ }
if ( !nbackends ) {
fprintf( stderr, "No databases found in config file\n" );