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/resource/admin/ldapMOProfile.xsl | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/opends/resource/admin/ldapMOProfile.xsl b/opends/resource/admin/ldapMOProfile.xsl
index 3e8bcc4..60c8d08 100644
--- a/opends/resource/admin/ldapMOProfile.xsl
+++ b/opends/resource/admin/ldapMOProfile.xsl
@@ -77,6 +77,21 @@
'=',
normalize-space(adm:profile[@name='ldap']/ldap:rdn-sequence),
'
')" />
+ <xsl:choose>
+ <xsl:when
+ test="adm:profile[@name='ldap']/ldap:naming-attribute">
+ <xsl:value-of
+ select="concat('naming-attribute.',
+ normalize-space(@name),
+ '=',
+ normalize-space(adm:profile[@name='ldap']/ldap:naming-attribute),
+ '
')" />
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of
+ select="concat('naming-attribute.', normalize-space(@name), '=cn
')" />
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
--
Gitblit v1.10.0