Recent BIND release changed the API, support both older and more recent BIND versions. Just add one parameter #if to ldap_driver.c.