From 6c344c0b005235e10fae64bad1571fe386b8e118 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sun, 23 Sep 2007 02:38:12 +0000
Subject: [PATCH] Add support for an LDIF backend.  Entries in this backend will be held in memory, and all read operations will be served from memory, but the underlying data will be stored in an LDIF file on disk and any write operation will cause that LDIF file to be updated.

---
 opends/src/messages/messages/backend.properties |   66 +++++++++++++++++++++++++++++++++
 1 files changed, 66 insertions(+), 0 deletions(-)

diff --git a/opends/src/messages/messages/backend.properties b/opends/src/messages/messages/backend.properties
index ce4afa7..8e1fc52 100644
--- a/opends/src/messages/messages/backend.properties
+++ b/opends/src/messages/messages/backend.properties
@@ -964,3 +964,69 @@
  certificate %s from the trust store file %s: %s
 SEVERE_ERR_TRUSTSTORE_CERTIFICATE_NOT_FOUND_338=Unable to retrieve entry %s \
  from the trust store backend because the certificate %s does not exist
+SEVERE_ERR_LDIF_BACKEND_MULTIPLE_BASE_DNS_339=The LDIF backend defined in \
+ configuration entry %s only supports a single base DN, but was configured \
+ for use with multiple base DNs
+SEVERE_ERR_LDIF_BACKEND_ERROR_OPENING_FILE_340=An error occurred while \
+ attempting to open LDIF file %s for use by the LDIF backend defined in \
+ configuration entry %s:  %s
+SEVERE_ERR_LDIF_BACKEND_ERROR_READING_ENTRY_341=An error occurred while \
+ attempting to read data from LDIF file %s into the LDIF backend defined in \
+ configuration entry %s: %s
+MILD_ERR_LDIF_BACKEND_DUPLICATE_ENTRY_342=LDIF file %s configured for use \
+ with the LDIF backend defined in configuration entry %s has multiple entries \
+ with a DN of %s
+MILD_ERR_LDIF_BACKEND_ENTRY_OUT_OF_SCOPE_343=LDIF file %s configured for use \
+ with the LDIF backend defined in configuration entry %s includes entry %s \
+ which is not below the base DN defined for that backend
+MILD_ERR_LDIF_BACKEND_MISSING_PARENT_344=LDIF file %s configured for use with \
+ the LDIF backend defined in configuration entry %s contains entry %s but \
+ its parent entry has not yet been read
+SEVERE_ERR_LDIF_BACKEND_ERROR_CREATING_FILE_345=An error occurred while \
+ trying to create file %s to write an updated version of the data for the \
+ LDIF backend defined in configuration entry %s:  %s
+SEVERE_ERR_LDIF_BACKEND_ERROR_WRITING_FILE_346=An error occurred while \
+ trying to write updated data to file %s for the LDIF backend defined in \
+ configuration entry %s:  %s
+SEVERE_ERR_LDIF_BACKEND_ERROR_RENAMING_FILE_347=An error occurred while \
+ attempting to rename file %s to %s while writing updated data for the LDIF \
+ backend defined in configuration entry %s:  %s
+MILD_ERR_LDIF_BACKEND_ADD_ALREADY_EXISTS_348=Entry %s already exists in the \
+ LDIF backend
+MILD_ERR_LDIF_BACKEND_ADD_MISSING_PARENT_349=The parent for entry %s does not \
+ exist
+MILD_ERR_LDIF_BACKEND_DELETE_NO_SUCH_ENTRY_350=Entry %s does not exist
+MILD_ERR_LDIF_BACKEND_DELETE_NONLEAF_351=Entry %s has one or more subordinate \
+ entries and cannot be deleted until all of its subordinate entries are \
+ removed first
+MILD_ERR_LDIF_BACKEND_MODIFY_NO_SUCH_ENTRY_352=Entry %s does not exist
+MILD_ERR_LDIF_BACKEND_MODDN_NO_SUCH_SOURCE_ENTRY_353=Source entry %s does not \
+ exist
+MILD_ERR_LDIF_BACKEND_MODDN_TARGET_ENTRY_ALREADY_EXISTS_354=Target entry %s \
+ already exists
+MILD_ERR_LDIF_BACKEND_MODDN_NEW_PARENT_DOESNT_EXIST_355=The new parent DN %s \
+ does not exist
+MILD_ERR_LDIF_BACKEND_SEARCH_NO_SUCH_BASE_356=Entry %s specified as the \
+ search base DN does not exist
+SEVERE_ERR_LDIF_BACKEND_CANNOT_CREATE_LDIF_WRITER_357=An error occurred while \
+ trying to create the writer for the LDIF export operation:  %s
+SEVERE_ERR_LDIF_BACKEND_CANNOT_WRITE_ENTRY_TO_LDIF_358=An error occurred \
+ while trying to write entry %s during the LDIF export:  %s
+SEVERE_ERR_LDIF_BACKEND_CANNOT_CREATE_LDIF_READER_359=An error occurred while \
+ trying to create the reader for the LDIF import operation:  %s
+SEVERE_ERR_LDIF_BACKEND_ERROR_READING_LDIF_360=An unrecoverable error \
+ occurred while attempting to read data from the import file:  %s.  The LDIF \
+ import cannot continue
+MILD_ERR_LDIF_BACKEND_BACKUP_RESTORE_NOT_SUPPORTED_361=The LDIF backend \
+ currently does not provide a backup or restore mechanism.  Use LDIF import \
+ and export operations instead
+MILD_ERR_LDIF_BACKEND_LDIF_DOESNT_EXIST_362=LDIF file %s referenced in LDIF \
+ backend configuration entry %s does not exist
+INFO_LDIF_BACKEND_LDIF_FILE_CHANGED_363=The change to the LDIF file path \
+ will not take effect until the backend is disabled and re-enabled
+INFO_LDIF_BACKEND_BASE_DN_CHANGED_364=The change to the LDIF backend base DN \
+ will not take effect until the backend is disabled and re-enabled
+MILD_ERR_LDIF_BACKEND_HAS_SUBORDINATES_NO_SUCH_ENTRY_365=The target entry %s \
+ does not exist
+MILD_ERR_LDIF_BACKEND_NUM_SUBORDINATES_NO_SUCH_ENTRY_366=The target entry %s \
+ does not exist

--
Gitblit v1.10.0