Issue description:
There's an issue that affects only Windows. Windows wheels are built there: https://github.com/cgohlke/python-ldap-build (also tried to build myself, but the issue was the same).
Steps to reproduce:
connection = ldap.initialize("<url>")
connection.set_option(ldap.OPT_NETWORK_TIMEOUT , 100)
Setting any positive value for ldap.OPT_NETWORK_TIMEOUT and trying to continue with some action, this will happen instantly:
ldap.SERVER_DOWN: {'result': -1, 'desc': "Can't contact LDAP server", 'errno': 2, 'ctrls': [], 'info': 'No such file or directory'}
Operating system: Windows 10
Python version: 3.11
python-ldap version: 3.4.3
Issue description:
There's an issue that affects only Windows. Windows wheels are built there: https://github.com/cgohlke/python-ldap-build (also tried to build myself, but the issue was the same).
Steps to reproduce:
Setting any positive value for
ldap.OPT_NETWORK_TIMEOUTand trying to continue with some action, this will happen instantly:ldap.SERVER_DOWN: {'result': -1, 'desc': "Can't contact LDAP server", 'errno': 2, 'ctrls': [], 'info': 'No such file or directory'}Operating system: Windows 10
Python version: 3.11
python-ldap version: 3.4.3