LDAP timeout options - Mailing list pgsql-hackers

From Roman Khapov
Subject LDAP timeout options
Date
Msg-id 2A7A01E0-3DE5-4E04-B07D-EAEE48C3D71C@yandex-team.ru
Whole thread
Responses Re: LDAP timeout options
List pgsql-hackers
Hi hackers!

While working on connections stall problems with external LDAP authentication for [0] I made a notice,
that the problem can be relevant for Postgres too: when LDAP timeout options was not set and auth operations is taking
long time, the connection (or backend slot) can be hold for a undefined amount of time, causing various problems on
server-side.

Seems like for some installation this times should be configurable, so I made a POC patch (attached), that adds new
LDAP hba options: ldapnetworktimeout and ldaptimeout, which allows to configure
LDAP_OPT_SEND_TIMEOUT/LDAP_OPT_NETWORK_TIMEOUTand LDAP_OPT_TIMELIMIT/LDAP_OPT_TIMEOUT for LDAP* objects. 

Any thoughts on this?

[0] https://github.com/yandex/odyssey



--
Best regards,
Roman Khapov
Attachment

pgsql-hackers by date:

Previous
From: Andrey Borodin
Date:
Subject: Re: injection_points: Switch wait/wakeup to use atomics rather than latches
Next
From: "David E. Wheeler"
Date:
Subject: Re: Why our Valgrind reports suck