mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
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:
parent
6b37f6c06f
commit
fe03b5a8bb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user