I thought you use a special JNDI property in the env that lists all the binary attributes by name separated by something like a ';' or comma.  It would be in the JNDI developers guide here:

http://java.sun.com/j2se/1.4.2/docs/guide/jndi/jndi-ldap-gl.html#PROP

check out section 3.3 re: this env prop: java.naming.ldap.attributes.binary.

Alex

On 3/12/07, Enrique Rodriguez <enriquer9@gmail.com > wrote:
On 3/12/07, Alex Karasulu <akarasulu@apache.org > wrote:
> Ok so this was by accident ... meaning do you still need some clarification?

I am curious how you would add a binary attribute using the Sun
LdapCtxFactory, but, no, I do not need to know any time soon for my
GSSAPI tests.

Enrique