]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
v4: Async LDAP connection fixes (#4240)
authorNick Porter <nick@portercomputing.co.uk>
Fri, 24 Sep 2021 20:43:43 +0000 (21:43 +0100)
committerGitHub <noreply@github.com>
Fri, 24 Sep 2021 20:43:43 +0000 (15:43 -0500)
commit46c7d832d5256da826fb3abc042a22ef3aabe14f
treee721a25ffc262a30ab2ae277ee1cea208739213f
parent8f862fd30273735c1956ff307eb00f17b6505ebd
v4: Async LDAP connection fixes (#4240)

* Improve log message for successful LDAP async bind

* typo

* net_timeout is still used

* ldap_get_option can return LDAP_SUCCESS before the fd is known

* If _ldap_bind_io_write was called without an fd look it up now

* Store the connection fd for setting trunk events

* Signal the connection once the bind has succeeded

* Setting LDAP_OPT_NETWORK_TIMEOUT actually stops async calls

* log_prefix should be const

* Associate connection state handle with ldap connection

* Add error message if LDAP connection does not allocate

* Explain use of net_timeout

* Explain behavior of ldap_get_option

* Explain why we may call _ldap_bind_io_write() without a writable fd

Co-authored-by: Arran Cudbard-Bell <a.cudbardb@freeradius.org>
src/lib/ldap/base.h
src/lib/ldap/bind.c
src/lib/ldap/connection.c
src/lib/ldap/state.c
src/modules/rlm_ldap/rlm_ldap.c