https://bugs.winehq.org/show_bug.cgi?id=54702
Bug ID: 54702 Summary: ldp.exe crashes when attempting to add an entry without a name Product: Wine Version: 8.4 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: wldap32 Assignee: wine-bugs@winehq.org Reporter: alexhenrie24@gmail.com Distribution: ---
Created attachment 74210 --> https://bugs.winehq.org/attachment.cgi?id=74210 WINEDEBUG=+wldap32
ldp.exe is Microsoft's GUI LDAP client, which was part of the Windows XP Service Pack 2 Support Tools and is still available on Windows 10 by installing the Windows feature "Active Directory Lightweight Directory Services".
Steps to reproduce:
1. Create a 32-bit Wine bottle and set the Windows version to XP.
2. Run `winetricks mfc42`.
3. Run `wine WindowsXP-KB838079-SupportTools-ENU.exe`.
4. Run `docker run --detach -p1389:1389 bitnami/openldap`
5. Run `wine 'C:\Program Files\Support Tools\ldp.exe'`.
6. Click Connection > Connect, enter "localhost" for "Server" and "1389" for "Port", check "Bind with default credentials", and click OK.
7. Click Browse > Add, leave everything blank, and click Run.
At this point, ldp.exe crashes. However, the program does not crash if you enter some Distinguished Name (DN) in the Add dialog, whether the DN is valid or not.
$ sha256sum WindowsXP-KB838079-SupportTools-ENU.exe 7927e87af616d2fb8d4ead0db0103eb845a4e6651b20a5bffea9eebc3035c24d