mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
10.13.2015 c5740d7b39334af983957a9c284ddd792d598f6c
opendj-server-legacy/src/main/java/org/opends/server/admin/ManagedObjectPath.java
@@ -150,8 +150,7 @@
      // Now add the single RDN representing the named instance.
      String type = profile.getRelationChildRDNType(r);
      AttributeType atype = DirectoryServer.getAttributeType(
          type.toLowerCase(), true);
      AttributeType atype = DirectoryServer.getAttributeTypeOrDefault(type.toLowerCase());
      ByteString avalue = ByteString.valueOf(name);
      dn = dn.child(RDN.create(atype, avalue));
    }
@@ -168,8 +167,7 @@
      // Now add the single RDN representing the instance.
      String type = profile.getRelationChildRDNType(r);
      AttributeType atype = DirectoryServer.getAttributeType(
          type.toLowerCase(), true);
      AttributeType atype = DirectoryServer.getAttributeTypeOrDefault(type.toLowerCase());
      ByteString avalue = ByteString.valueOf(d.getName());
      dn = dn.child(RDN.create(atype, avalue));
    }