https://bugs.winehq.org/show_bug.cgi?id=52140
--- Comment #2 from Rafał Mużyło galtgendo@o2.pl --- The thing is that that's quite close to the fix.
At 2.5.0 upstream merged libldap_r into libldap. Getting a proper version check might be tricky - I don't know if any new api was added at that point.