From e9b852662fdb3c43dcdf5efc50c4ae589cba7460 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Sun, 17 May 2026 21:06:47 +0200 Subject: [PATCH] let the LDAP server pool time out --- auth/krbldap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth/krbldap.py b/auth/krbldap.py index 2310694..4702d2d 100644 --- a/auth/krbldap.py +++ b/auth/krbldap.py @@ -14,8 +14,8 @@ def Konnection(hosts, username, password): def make_server_pool(hosts): - servers = [Server(host, get_info=NONE) for host in hosts] - return ServerPool(servers, ROUND_ROBIN, active=True, exhaust=True) + servers = [Server(host, get_info=NONE, connect_timeout=3) for host in hosts] + return ServerPool(servers, ROUND_ROBIN, active=3, exhaust=True) def make_creds(username, password):