Skip to content

Windows only: OPT_NETWORK_TIMEOUT and "Can't contact LDAP server"  #528

Description

@IvarVirusiim

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions