Adds bind_ldap_for_search function before doing ldap searches