just to close this thread, the reported issue could be fixed, by placing all possible ldap attributes in *pass_attrs[] of handle_ldap_is_auth() like this:
handle_ldap_is_auth(cmd_rec *cmd)
{
const char *username = cmd->argv[0];
char *pass_attrs[] = {ldap_attr_userpassword, ldap_attr_uid,
ldap_attr_uidnumber, ldap_attr_gidnumber,
ldap_attr_homedirectory, ldap_attr_loginshell, NULL};
struct passwd *pw;
In any case the problem here is that mod_ldap (2.8.19) repeats exactly the same ldap query 4 times during a single FTP command ("PASS"). Are we sure that the removed caching code of mod_ldap isn't really needed?