8000 Ignore servers in pool with invalid credentials · Issue #1142 · cannatag/ldap3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Ignore servers in pool with invalid credentials #1142
Open
@flixman

Description

@flixman

I am creating a pool with a list of servers that I get from my company's DNS, I am getting some servers for which my credentials are not valid. Is there any way I can instruct ldap3 to not raise and exception for this situation and just exclude the servers from the pool? This is the code that is failing:

    with contextlib.ExitStack() as stack:
        server_pools = {domain: ServerPool(servers, ROUND_ROBIN, active=True, exhaust=True) for domain, servers in SERVERS.items()}
        conns = {domain: stack.enter_context(Connection(pool, authentication=SASL, sasl_mechanism=KERBEROS)) for domain, pool in server_pools.items()}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0