A google search indicates that this is a very common problem with several other vendors as well...
Please file an issue on GlassFish. I will consult the LDAP folks to see how this needs to be handled.
Thanks.
[Message sent by forum member 'kumarjayanti' (kumarjayanti)]
http://forums.java.net/jive/thread.jspa?messageID=279862