I am using Apache DS with a Java application.

I guess i can save a Java object as a byte array into an attribute.

Is it possible?

I have custom Directory server classes which i import into DS with ldif files.

Also i have custom attribute types under ou=attributeTypes,cn=adsconfig,ou=schema

If i want my custom classes to have byte array attributes, how should i define these custom attributes?