From 43718b3055068721a34bd39ef60ff1d02ee0ff1c Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sat, 07 Jul 2007 22:42:36 +0000
Subject: [PATCH] Update the LDIF reader so that it has the ability to perform syntax validation as well as schema checking. It will honor the ds-cfg-invalid-attribute-syntax-behavior configuration.
---
opends/src/server/org/opends/server/messages/UtilityMessages.java | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/messages/UtilityMessages.java b/opends/src/server/org/opends/server/messages/UtilityMessages.java
index c5554c6..20f612e 100644
--- a/opends/src/server/org/opends/server/messages/UtilityMessages.java
+++ b/opends/src/server/org/opends/server/messages/UtilityMessages.java
@@ -1714,6 +1714,19 @@
/**
+ * The message ID for the warning message that will be used if an entry is
+ * read from an LDIF file that contains an attribute value that violates the
+ * associated syntax. This takes five arguments, which are the DN of the
+ * entry, the starting line number for the entry, the invalid value, the name
+ * of the attribute, and a message explaining the reason that the value is not
+ * acceptable.
+ */
+ public static final int MSGID_LDIF_VALUE_VIOLATES_SYNTAX =
+ CATEGORY_MASK_UTIL | SEVERITY_MASK_MILD_WARNING | 163;
+
+
+
+ /**
* Associates a set of generic messages with the message IDs defined in this
* class.
*/
@@ -1780,6 +1793,10 @@
"Entry %s read from LDIF starting at line %d includes a " +
"duplicate objectclass value %s. The second occurrence " +
"of that objectclass has been skipped");
+ registerMessage(MSGID_LDIF_VALUE_VIOLATES_SYNTAX,
+ "Entry %s read from LDIF starting at line %d includes " +
+ "value '%s' for attribute %s that is invalid according " +
+ "to the associated syntax: %s");
registerMessage(MSGID_LDIF_DUPLICATE_ATTR,
"Entry %s read from LDIF starting at line %d includes a " +
"duplicate attribute %s with value %s. The second " +
--
Gitblit v1.10.0