little patch for ldap library