Add '-q' "quick" option and SLAP_TOOL_QUICK def for slapadd to run

with fewer integrity checks. (may also change slapindex later.)
This commit is contained in:
Howard Chu 2005-01-24 01:37:09 +00:00
parent 6b37f6c06f
commit fe03b5a8bb
2 changed files with 6 additions and 1 deletions

View File

@ -1389,6 +1389,7 @@ LDAP_SLAPD_V (int) slapMode;
#define SLAP_TRUNCATE_MODE 0x0100
#define SLAP_TOOL_READMAIN 0x0200
#define SLAP_TOOL_READONLY 0x0400
#define SLAP_TOOL_QUICK 0x0800
struct slap_replica_info {
char *ri_host; /* supersedes be_replica */

View File

@ -127,7 +127,7 @@ slap_tool_init(
switch( tool ) {
case SLAPADD:
options = "b:cd:f:l:n:tuvw";
options = "b:cd:f:l:n:qtuvw";
break;
case SLAPCAT:
@ -204,6 +204,10 @@ slap_tool_init(
dbnum = atoi( optarg ) - 1;
break;
case 'q': /* turn on quick */
mode |= SLAP_TOOL_QUICK;
break;
case 'R':
realm = optarg;
break;