mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 08:39:37 -05:00
Remove -s (noschemacheck in favor of using global_schemacheck)
This commit is contained in:
parent
7d9d10c70c
commit
ad08ff008e
4 changed files with 4 additions and 14 deletions
|
|
@ -8,7 +8,6 @@ slapadd \- Add entries to a SLAPD database
|
|||
.B SBINDIR/slapadd
|
||||
.B [\-v]
|
||||
.B [\-c]
|
||||
.B [\-s]
|
||||
.B [\-d level]
|
||||
.B [\-b suffix]
|
||||
.B [\-n dbnum]
|
||||
|
|
@ -38,9 +37,6 @@ enable verbose mode.
|
|||
.B \-c
|
||||
enable continue (ignore errors) mode.
|
||||
.TP
|
||||
.B \-s
|
||||
disable schema and other checks.
|
||||
.TP
|
||||
.BI \-d " level"
|
||||
enable debugging messages as defined by the specified
|
||||
.IR level .
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ main( int argc, char **argv )
|
|||
break;
|
||||
}
|
||||
|
||||
if( !noschemacheck ) {
|
||||
if( global_schemacheck ) {
|
||||
/* check schema */
|
||||
const char *text;
|
||||
if ( entry_schema_check( e, NULL, &text ) != LDAP_SUCCESS ) {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ char *progname = NULL;
|
|||
char *conffile = SLAPD_DEFAULT_CONFIGFILE;
|
||||
int truncatemode = 0;
|
||||
int verbose = 0;
|
||||
int noschemacheck = 0;
|
||||
int continuemode = 0;
|
||||
|
||||
char *ldiffile = NULL;
|
||||
|
|
@ -42,11 +41,11 @@ usage( int tool )
|
|||
char *options = NULL;
|
||||
fprintf( stderr,
|
||||
"usage: %s [-v] [-c] [-d debuglevel] [-f configfile]\n"
|
||||
"\t[-n databasenumber | -b suffix]", progname );
|
||||
"\t[-n databasenumber | -b suffix]", progname );
|
||||
|
||||
switch( tool ) {
|
||||
case SLAPADD:
|
||||
options = "\t[-s] [-l ldiffile]\n";
|
||||
options = "\t[-l ldiffile]\n";
|
||||
break;
|
||||
|
||||
case SLAPCAT:
|
||||
|
|
@ -97,7 +96,7 @@ slap_tool_init(
|
|||
|
||||
switch( tool ) {
|
||||
case SLAPADD:
|
||||
options = "b:cd:f:l:n:stv";
|
||||
options = "b:cd:f:l:n:tv";
|
||||
break;
|
||||
|
||||
case SLAPINDEX:
|
||||
|
|
@ -142,10 +141,6 @@ slap_tool_init(
|
|||
dbnum = atoi( optarg ) - 1;
|
||||
break;
|
||||
|
||||
case 's': /* disable schema checking */
|
||||
noschemacheck++;
|
||||
break;
|
||||
|
||||
case 't': /* turn on truncate */
|
||||
truncatemode++;
|
||||
mode |= SLAP_TRUNCATE_MODE;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ extern char *conffile;
|
|||
extern Backend *be;
|
||||
extern int appendmode;
|
||||
extern int verbose;
|
||||
extern int noschemacheck;
|
||||
extern int continuemode;
|
||||
|
||||
extern char *ldiffile;
|
||||
|
|
|
|||
Loading…
Reference in a new issue