Terminal Addict wrote:
The problem was in 'name_field'. If I specified 'displayname' for 'name_field', the list following a search would show names, but if you click on a name in the list, the name would be empty in the details. If I specified 'displayName' for 'name_field', then the list would have empty entries, but clicking on one of those empty entries would show the full contact details including the name.
I did try strtolower in __construct(), but that only replicated one of the issues described above (I can't remember for sure which one now).
This will probably work if we rewrite rcube_ldap::get_record() function for use ldap_get_entries() instead of ldap_get_attributes(). I don't use LDAP so I cannot test this idea.