From 425ecf343bc90414dbcd241982d96b18dfbca253 Mon Sep 17 00:00:00 2001
From: Chris Ridd <chris.ridd@forgerock.com>
Date: Fri, 01 Mar 2013 16:21:49 +0000
Subject: [PATCH] Fix OPENDJ-750 SNMP: impossible to get the operation counters for a LDAP connection handler

---
 opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPStatistics.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPStatistics.java b/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPStatistics.java
index b05145d..b8174f9 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPStatistics.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPStatistics.java
@@ -654,7 +654,7 @@
 
   /**
    * Constructs an attribute using the provided information. It will
-   * have the default syntax.
+   * use the server's schema definitions.
    *
    * @param name
    *          The name to use for the attribute.
@@ -665,7 +665,7 @@
   private Attribute createAttribute(String name, String value)
   {
     AttributeType attrType =
-        DirectoryServer.getDefaultAttributeType(name);
+      DirectoryServer.getAttributeType(name.toLowerCase());
 
     AttributeBuilder builder = new AttributeBuilder(attrType, name);
     builder.add(AttributeValues.create(attrType, value));

--
Gitblit v1.10.0