| | |
| | | import static org.forgerock.opendj.ldap.ResultCode.*; |
| | | import static org.opends.messages.ReplicationMessages.*; |
| | | import static org.opends.messages.ToolMessages.*; |
| | | import static org.opends.server.config.ConfigConstants.DN_DEFAULT_SCHEMA_ROOT; |
| | | import static org.opends.server.protocols.internal.InternalClientConnection.*; |
| | | import static org.opends.server.protocols.internal.Requests.*; |
| | | import static org.opends.server.replication.plugin.EntryHistorical.*; |
| | |
| | | "2.5.4.0" // objectClass OID |
| | | }; |
| | | |
| | | private static final DN SET_PERMISSIVE_MODIFY_FOR_DN = DN.valueOf(DN_DEFAULT_SCHEMA_ROOT); |
| | | |
| | | /** |
| | | * When true, this flag is used to force the domain status to be put in bad |
| | | * data set just after the connection to the replication server. |
| | |
| | | // are processed locally. |
| | | op.addRequestControl(new LDAPControl(OID_MANAGE_DSAIT_CONTROL)); |
| | | |
| | | // Warning: specific processing ahead. See OPENDJ-2792 |
| | | if (op instanceof ModifyOperation) |
| | | { |
| | | ModifyOperation modifyOperation = (ModifyOperation) op; |
| | | if (modifyOperation.getEntryDN().equals(SET_PERMISSIVE_MODIFY_FOR_DN)) |
| | | { |
| | | op.addRequestControl(new LDAPControl(OID_PERMISSIVE_MODIFY_CONTROL)); |
| | | } |
| | | } |
| | | |
| | | csn = OperationContext.getCSN(op); |
| | | op.run(); |
| | | |