It uses dn found, that isn't only cn. Can't I change this server beahoviur and execute bind with full dn?
AFAIK, if you are using ApacheDS then the only way the authentication works is by specifying the full DN Isn't it in your case?
For more clarity I upload the entire java class.
Attachments will be stripped by the spam filter may be you can use a paste bin and provide a link Kiran Ayyagari
