Commit fe03b5a8 authored by Howard Chu's avatar Howard Chu
Browse files

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

with fewer integrity checks. (may also change slapindex later.)
parent 6b37f6c0
......@@ -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 */
......
......@@ -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;
......
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