Hide Forgot
+++ This bug was initially created as a clone of Bug #1875361 +++ SSSD wants to perform multiple CLDAP pings to Active Directory in parallel. However openldap has a bug that cause a blocking i/o call when connection to the UDP port can not be established. Upstream BZ (merged): https://bugs.openldap.org/show_bug.cgi?id=9328 When using LDAP over UDP, calling ldap_result() hangs if there is nobody listening on the remote port. The problem is that it calls recvfrom() twice, the first attempt returns ECONNREFUSED but this is ignored. The seconds read then blocks/timeouts/returns EAGAIN depending on the sockets settings, however we know that we will never receive any data so it should return an error. See [1] poll([{fd=20, events=POLLIN|POLLPRI}], 1, 0) = 1 ([{fd=20, revents=POLLERR}]) recvfrom(20, 0x18dade0, 16256, 0, 0x18dad60, [128]) = -1 ECONNREFUSED (Connection refused) recvfrom(20, <unfinished ...>) = ? [1] https://git.openldap.org/pbrezina/openldap/-/blob/master/libraries/libldap/result.c#L489 Reproducer: $ gcc -ggdb3 -o client ./main.c -lldap $ strace ./client ... sendto(3, "0'\2\1\1\4\0c \4\0\n\1\0\n\1\0\2\1\0\2\1\0\1\1\0\207\vobje"..., 41, 0, {sa_family=AF_INET, sin_port=htons(3333), sin_addr=inet_addr("127.0.0.1")}, 16) = 41 poll([{fd=3, events=POLLIN|POLLPRI}], 1, 1000) = 1 ([{fd=3, revents=POLLERR}]) recvfrom(3, 0x493b10, 16256, 0, 0x493a90, [128]) = -1 ECONNREFUSED (Connection refused) recvfrom(3, No LDAP server is running at localhost.
This package has changed maintainer in the Fedora. Reassigning to the new maintainer of this component.
FEDORA-2020-1686577da8 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-1686577da8
FEDORA-2020-7b99075365 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-7b99075365
F32 - https://src.fedoraproject.org/rpms/openldap/c/c0d29c164b6ea1ade3483fd0c8f98a372d3e40ea?branch=f32 F33 - https://src.fedoraproject.org/rpms/openldap/c/be11dedffbee859bec599d574615e7e348d2d3a4?branch=f33
FEDORA-2020-1686577da8 has been pushed to the Fedora 33 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-1686577da8` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-1686577da8 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-7b99075365 has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-7b99075365` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-7b99075365 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-7b99075365 has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2020-1686577da8 has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report.