Skip to content
Snippets Groups Projects
Commit ad08ff00 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Remove -s (noschemacheck in favor of using global_schemacheck)

parent 7d9d10c7
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment