}
}
private void modifyIndex() throws OpenDsException
{
LDIFImportConfig ldifImportConfig = null;
try
{
ldifImportConfig = new LDIFImportConfig(new StringReader(ldif));
LDIFReader reader = new LDIFReader(ldifImportConfig);
Entry newConfigEntry = reader.readEntry();
Entry oldEntry = DirectoryServer.getConfigEntry(
newConfigEntry.getDN()).getEntry();
DirectoryServer.getConfigHandler().replaceEntry(oldEntry,
newConfigEntry,
null);
DirectoryServer.getConfigHandler().writeUpdatedConfig();
}
catch (IOException ioe)
{
throw new OfflineUpdateException(
ERR_CTRL_PANEL_ERROR_UPDATING_CONFIGURATION.get(ioe.toString()),
ioe);
}
finally
{
if (ldifImportConfig != null)
{
ldifImportConfig.close();
}
}
}