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
https://bugs.openldap.org/show_bug.cgi?id=10353
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED Resolution|TEST |FIXED
https://bugs.openldap.org/show_bug.cgi?id=10353
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- head:
• 7bc49994 by Howard Chu at 2026-05-30T23:57:40+01:00 ITS#10353 Winsock: more for prev commit
RE27:
• 2356f4f6 by Howard Chu at 2026-06-03T22:35:48+00:00 ITS#10353 Winsock: more for prev commit
Note: This specific commit does not apply to RE26, as the commit for ITS#6938 was not applied to it.