https://bugs.openldap.org/show_bug.cgi?id=10353
Issue ID: 10353 Summary: No TLS connection on Windows because of missing ENOTCONN in socket.h Product: OpenLDAP Version: 2.6.10 Hardware: All OS: Windows Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: libraries Assignee: bugs@openldap.org Reporter: julien.wadel@belledonne-communications.com Target Milestone: ---
On Windows, the TLS connection cannot be done and we get the connection error: Can't contact LDAP server.
=> Connections are done with WSAGetLastError(). After getting WSAEWOULDBLOCK, the connection is not restart because of the state WSAENOTCONN that is not known.
OpenLDAP use ENOTCONN that is set to 126 by "ucrt/errno.h" while WSAENOTCONN is 10057L. Adding #define ENOTCONN WSAENOTCONN like for EWOULDBLOCK resolve the issue.
Reference commit on external project: https://gitlab.linphone.org/BC/public/external/openldap/-/commit/62fbfb12e85...
https://bugs.openldap.org/show_bug.cgi?id=10353
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.6.11 Keywords|needs_review |
https://bugs.openldap.org/show_bug.cgi?id=10353
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@openldap.org |hyc@openldap.org
https://bugs.openldap.org/show_bug.cgi?id=10353
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |TEST
--- Comment #1 from Howard Chu hyc@openldap.org --- Added to git fb2d478ef51b5723dae90aaf0d326120d1a13ac2
https://bugs.openldap.org/show_bug.cgi?id=10353
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- head:
• fb2d478e by Julien Wadel at 2025-10-21T17:03:18+01:00 ITS#10353 WINSOCK: add missing ENOTCONN #define
RE26:
• 21de28b9 by Julien Wadel at 2025-11-04T16:06:20+00:00 ITS#10353 WINSOCK: add missing ENOTCONN #define