case SLAPADD:
options = "\n\t[-n databasenumber | -b suffix]\n"
- "\t[-l ldiffile] [-u] [-w]\n";
+ "\t[-l ldiffile] [-q] [-u] [-w]\n";
break;
case SLAPAUTH:
case SLAPCAT:
options = "\n\t[-n databasenumber | -b suffix]"
- " [-l ldiffile] [-a filter] [-m] [-k]\n";
+ " [-l ldiffile] [-a filter]\n";
break;
case SLAPDN:
break;
case SLAPINDEX:
- options = "\n\t[-n databasenumber | -b suffix]\n";
+ options = "\n\t[-n databasenumber | -b suffix] [-q]\n";
break;
case SLAPTEST:
switch( tool ) {
case SLAPADD:
- options = "b:cd:f:l:n:tuvw";
+ options = "b:cd:f:l:n:qtuvw";
break;
case SLAPCAT:
break;
case SLAPINDEX:
- options = "b:cd:f:n:v";
+ options = "b:cd:f:n:qv";
mode |= SLAP_TOOL_READMAIN;
break;
break;
case 'n': /* which config file db to index */
- dbnum = atoi( optarg ) - 1;
+ dbnum = atoi( optarg );
+ break;
+
+ case 'q': /* turn on quick */
+ mode |= SLAP_TOOL_QUICK;
break;
case 'R':
verbose++;
break;
- case 'w': /* write context csn on at the end */
+ case 'w': /* write context csn at the end */
update_ctxcsn++;
break;
break;
}
+ ldap_syslog = 0;
+
if ( ldiffile == NULL ) {
ldiffp = tool == SLAPCAT ? stdout : stdin;
exit( EXIT_FAILURE );
}
- ldap_syslog = 0;
+ at_oc_cache = 1;
switch ( tool ) {
case SLAPADD:
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.
*/