mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 23:19:59 -05:00
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)
This commit is contained in:
parent
4ccb430c8c
commit
9a0797004f
1 changed files with 5 additions and 0 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue