| | |
| | | import java.util.Set; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.LocalizedIllegalArgumentException; |
| | | import org.forgerock.opendj.config.server.ConfigChangeResult; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | | import org.forgerock.opendj.ldap.AVA; |
| | | import org.forgerock.opendj.ldap.DN; |
| | | import org.forgerock.opendj.ldap.ByteSequence; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.forgerock.opendj.ldap.DN; |
| | | import org.forgerock.opendj.ldap.RDN; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.forgerock.opendj.ldap.schema.AttributeType; |
| | | import org.opends.server.admin.server.ConfigurationChangeListener; |
| | | import org.opends.server.admin.std.meta.PluginCfgDefn; |
| | |
| | | import org.opends.server.api.plugin.PluginType; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.types.Attribute; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.LDAPException; |
| | | import org.opends.server.types.LDIFImportConfig; |
| | |
| | | { |
| | | entryDN = DN.valueOf(addOperation.getRawEntryDN()); |
| | | } |
| | | catch (DirectoryException de) |
| | | catch (LocalizedIllegalArgumentException e) |
| | | { |
| | | return PluginResult.PreParse.stopProcessing(de.getResultCode(), |
| | | ERR_PLUGIN_7BIT_CANNOT_DECODE_DN.get(de.getMessageObject())); |
| | | return PluginResult.PreParse.stopProcessing(ResultCode.INVALID_DN_SYNTAX, |
| | | ERR_PLUGIN_7BIT_CANNOT_DECODE_DN.get(e.getMessageObject())); |
| | | } |
| | | |
| | | if (isInScope(config, entryDN)) |
| | |
| | | { |
| | | entryDN = DN.valueOf(modifyOperation.getRawEntryDN()); |
| | | } |
| | | catch (DirectoryException de) |
| | | catch (LocalizedIllegalArgumentException e) |
| | | { |
| | | return PluginResult.PreParse.stopProcessing(de.getResultCode(), |
| | | ERR_PLUGIN_7BIT_CANNOT_DECODE_DN.get(de.getMessageObject())); |
| | | return PluginResult.PreParse.stopProcessing(ResultCode.INVALID_DN_SYNTAX, |
| | | ERR_PLUGIN_7BIT_CANNOT_DECODE_DN.get(e.getMessageObject())); |
| | | } |
| | | |
| | | if (isInScope(config, entryDN)) |
| | |
| | | { |
| | | entryDN = DN.valueOf(modifyDNOperation.getRawEntryDN()); |
| | | } |
| | | catch (DirectoryException de) |
| | | catch (LocalizedIllegalArgumentException e) |
| | | { |
| | | return PluginResult.PreParse.stopProcessing(de.getResultCode(), |
| | | ERR_PLUGIN_7BIT_CANNOT_DECODE_DN.get(de.getMessageObject())); |
| | | return PluginResult.PreParse.stopProcessing(ResultCode.INVALID_DN_SYNTAX, |
| | | ERR_PLUGIN_7BIT_CANNOT_DECODE_DN.get(e.getMessageObject())); |
| | | } |
| | | |
| | | if (isInScope(config, entryDN)) |
| | |
| | | { |
| | | newRDN = RDN.valueOf(rawNewRDN.toString()); |
| | | } |
| | | catch (DirectoryException de) |
| | | catch (LocalizedIllegalArgumentException e) |
| | | { |
| | | return PluginResult.PreParse.stopProcessing(de.getResultCode(), |
| | | ERR_PLUGIN_7BIT_CANNOT_DECODE_NEW_RDN.get(de.getMessageObject())); |
| | | return PluginResult.PreParse.stopProcessing(ResultCode.INVALID_DN_SYNTAX, |
| | | ERR_PLUGIN_7BIT_CANNOT_DECODE_NEW_RDN.get(e.getMessageObject())); |
| | | } |
| | | |
| | | for (AVA ava : newRDN) |