o using OID instead of attribute's name


git-svn-id: https://svn.apache.org/repos/asf/directory/apacheds/branches/apacheds-dnfactory-experiment@981284 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/core/src/main/java/org/apache/directory/server/core/schema/SchemaChecker.java b/core/src/main/java/org/apache/directory/server/core/schema/SchemaChecker.java
index 0745783..52222fb 100644
--- a/core/src/main/java/org/apache/directory/server/core/schema/SchemaChecker.java
+++ b/core/src/main/java/org/apache/directory/server/core/schema/SchemaChecker.java
@@ -384,7 +384,7 @@
         
         for ( AttributeType attributeType:entry.getAttributeTypes() )
         {
-            String id = attributeType.getName();
+            String id = attributeType.getOid();
 
             if ( rdnAttributes.contains( id ) )
             {
@@ -533,7 +533,7 @@
         
         for ( AttributeType attributeType:entry.getAttributeTypes() )
         {
-            String id = attributeType.getName();
+            String id = attributeType.getOid();
 
             if ( rdnAttributes.contains( id ) )
             {