From 1a990d339cac38fa16ab66db896ebdaede6dcdb8 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Fri, 17 Jun 2011 13:18:56 +0000
Subject: [PATCH] Allow "." and "_" in non-numeric OIDs by default as these are used by collation rules in OpenDJ.

---
 opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/schema/SchemaCompatOptions.java |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/schema/SchemaCompatOptions.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/schema/SchemaCompatOptions.java
index 43804d5..1d30f9b 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/schema/SchemaCompatOptions.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/schema/SchemaCompatOptions.java
@@ -67,7 +67,7 @@
 
   private boolean allowZeroLengthDirectoryStrings = false;
 
-  private boolean allowMalformedNamesAndOptions = false;
+  private boolean allowMalformedNamesAndOptions = true;
 
 
 
@@ -82,14 +82,16 @@
   /**
    * Returns {@code true} if the schema should allow certain illegal characters
    * in OIDs and attribute options. When this compatibility option is set to
-   * {@code true} the following illegal characters will be permitted:
+   * {@code true} the following illegal characters will be permitted in addition
+   * to those permitted in section 1.4 of RFC 4512:
    *
    * <pre>
    * USCORE  = %x5F ; underscore ("_")
    * DOT     = %x2E ; period (".")
    * </pre>
    *
-   * By default this compatibility option is set to {@code false}.
+   * By default this compatibility option is set to {@code true} because these
+   * characters are often used for naming purposes (such as collation rules).
    *
    * @return {@code true} if the schema should allow certain illegal characters
    *         in OIDs and attribute options.
@@ -106,14 +108,16 @@
   /**
    * Specifies whether or not the schema should allow certain illegal characters
    * in OIDs and attribute options. When this compatibility option is set to
-   * {@code true} the following illegal characters will be permitted:
+   * {@code true} the following illegal characters will be permitted in addition
+   * to those permitted in section 1.4 of RFC 4512:
    *
    * <pre>
    * USCORE  = %x5F ; underscore ("_")
    * DOT     = %x2E ; period (".")
    * </pre>
    *
-   * By default this compatibility option is set to {@code false}.
+   * By default this compatibility option is set to {@code true} because these
+   * characters are often used for naming purposes (such as collation rules).
    *
    * @param allowMalformedNamesAndOptions
    *          {@code true} if the schema should allow certain illegal characters

--
Gitblit v1.10.0