From e7082916645d9f30c4688bdaacc17def57bd8126 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Wed, 18 Apr 2007 08:00:36 +0000
Subject: [PATCH] Add support for specifying the naming attribute in relations.
---
opends/src/server/org/opends/server/admin/LDAPProfile.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/admin/LDAPProfile.java b/opends/src/server/org/opends/server/admin/LDAPProfile.java
index e74c361..a56155e 100644
--- a/opends/src/server/org/opends/server/admin/LDAPProfile.java
+++ b/opends/src/server/org/opends/server/admin/LDAPProfile.java
@@ -79,8 +79,8 @@
*/
public String getInstantiableRelationChildRDNType(
InstantiableRelationDefinition<?, ?> r) {
- // For now, assume always "cn".
- return "cn";
+ return resource.getString(r.getParentDefinition(),
+ "naming-attribute." + r.getName());
}
--
Gitblit v1.10.0