I made a separate get_search_entry_with_controls() so as to maintain backwards compatibility. In the long term I think this functionality should be merged into get_search_entry but the api will need to be broken.
I have also included a test program that shows the functionality in action. It is helpful to run wireshark while running the test program so that it can be clearly seen what it actually happening.
Ah, I see. So in the future I should work from ocamldap-next. How do you prefer to receive patches? I picked this method just because I thought it would be good to have a bitbucket setup, would you prefer a git formatted patch?