objectClasses.put(objectClass, ocName);
}
}
else
{
AttributeType attrType = DirectoryServer.getAttributeType(lowerName);
if (attrType == null)
{
attrType = DirectoryServer.getDefaultAttributeType(attrName);
}
AttributeBuilder builder = new AttributeBuilder(attribute, true);
for (Object value : this.getAttributeValues(attrName))
{
ByteString bs;
if (value instanceof byte[])
{
bs = ByteString.wrap((byte[])value);
}
else
{
bs = ByteString.valueOf(value.toString());
}
AttributeValue attributeValue =
AttributeValues.create(attrType, bs);
builder.add(attributeValue);
}
List<org.nasutekds.server.types.Attribute> attrList =
new ArrayList<org.nasutekds.server.types.Attribute>(1);
attrList.add(builder.toAttribute());
if (attrType.isOperational())
{
operationalAttributes.put(attrType, attrList);
}
else
{