From 15440a7ab118debef5993c3b261b1043d9f7afc3 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Fri, 18 Aug 2006 23:12:58 +0000
Subject: [PATCH] Update the createEntry method to be more intelligent about the structural objectclass that it uses for the entry that gets created. If the DN contains a single RDN attribute, then the following mappings will be used:
---
opends/src/server/org/opends/server/util/ServerConstants.java | 72 ++++++++++++++++++++++++++++++++++++
1 files changed, 72 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/util/ServerConstants.java b/opends/src/server/org/opends/server/util/ServerConstants.java
index f7c635c..b33e39b 100644
--- a/opends/src/server/org/opends/server/util/ServerConstants.java
+++ b/opends/src/server/org/opends/server/util/ServerConstants.java
@@ -112,6 +112,14 @@
/**
+ * The name of the standard attribute that is used to hold country names,
+ * formatted in all lowercase.
+ */
+ public static final String ATTR_C = "c";
+
+
+
+ /**
* The name of the standard attribute that is used to hold common names,
* formatted in all lowercase.
*/
@@ -152,6 +160,14 @@
/**
+ * The name of the standard attribute that is used to hold domain component
+ * names, formatted in all lowercase.
+ */
+ public static final String ATTR_DC = "dc";
+
+
+
+ /**
* The name of the attribute that is used to specify the maximum number of
* connections established at any time since startup, formatted in camel case.
*/
@@ -187,6 +203,22 @@
/**
+ * The name of the standard attribute that is used to hold organization names,
+ * formatted in all lowercase.
+ */
+ public static final String ATTR_O = "o";
+
+
+
+ /**
+ * The name of the standard attribute that is used to hold organizational unit
+ * names, formatted in all lowercase.
+ */
+ public static final String ATTR_OU = "ou";
+
+
+
+ /**
* The name of the standard attribute that is used to specify the name of the
* Directory Server product, formatted in camel case.
*/
@@ -407,6 +439,22 @@
public static final String OC_ALIAS = "alias";
+
+ /**
+ * The name of the standard objectclass, formatted in all lowercase, that is
+ * used to indicate that an entry describes a country.
+ */
+ public static final String OC_COUNTRY = "country";
+
+
+
+ /**
+ * The name of the standard objectclass, formatted in all lowercase, that is
+ * used to indicate that an entry describes a domain.
+ */
+ public static final String OC_DOMAIN = "domain";
+
+
/**
* The name of the standard objectclass that is used to allow any attribute
* type to be present in an entry, formatted in camel case.
@@ -479,6 +527,30 @@
/**
+ * The name of the standard objectclass, formatted in all lowercase, that is
+ * used to indicate that an entry describes an organization.
+ */
+ public static final String OC_ORGANIZATION = "organization";
+
+
+
+ /**
+ * The name of the standard objectclass that is used to indicate that an
+ * entry describes an organizational unit.
+ */
+ public static final String OC_ORGANIZATIONAL_UNIT = "organizationalUnit";
+
+
+
+ /**
+ * The name of the organizationalUnit objectclass formatted in all lowercase
+ * characters.
+ */
+ public static final String OC_ORGANIZATIONAL_UNIT_LC = "organizationalunit";
+
+
+
+ /**
* The name of the standard objectclass that is used to indicate that an entry
* is a smart referral, formatted in all lowercase.
*/
--
Gitblit v1.10.0