cannot cancel LDAP search operation via JNDI before the LDAP server sends the first batch of answers
The problem can be solved when changing the class com.sun.jndi.ldap.LdapCtx, method c_search(Name name, String filter, SearchControls cons, Continuation cont), row 1747. This method invokes "searchAux" with a parameter called "WaitForReply". In the original code "waitForReply" is set to true. A JNDI property is in order to allow customer to change "WaitForReply" to false in their code.