Skip to content
Snippets Groups Projects
Commit 9a079700 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

if tool mode needs to add structuralObjectClass, override any database setting...

if tool mode needs to add structuralObjectClass, override any database setting (rationale: if configured w/ mirror mode and syncrepl, a master is also a shadow, but we need to be able to slapadd to a master (possibly with the correct SID; will deal with this later)
parent 4ccb430c
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,11 @@ slapadd( int argc, char **argv )
lmax = 0;
nextline = 0;
/* enforce schema checking unless not disabled */
if ( (slapMode & SLAP_TOOL_NO_SCHEMA_CHECK) == 0) {
SLAP_DBFLAGS(be) &= ~(SLAP_DBFLAG_NO_SCHEMA_CHECK);
}
if( !dryrun && be->be_entry_open( be, 1 ) != 0 ) {
fprintf( stderr, "%s: could not open database.\n",
progname );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment