If you have network issues and you're not able to connect to the DC, Winbind is leaking sockets in a burst which each try to open a SMB connection to the DC. So this pile up really fast and we leak sockets faster than a machine gun. The result is most of the time winbind ending up in an accept loop with accept() failing with EMFILE. Thanks to Jim who was able to reproduce it on his machine we found the error after spending several hours debugging and reading the code.
Created attachment 8235 [details] Patch for master
Wow, an 8 year old bug that I have to claim as mine :-( Thanks!
Created attachment 8236 [details] Patch for master
Comment on attachment 8236 [details] Patch for master Just obviously right. Sorry for giving you the pain...
Created attachment 8237 [details] v3-6-test patch This patch also applies to v4-0-test.
Karolin, please add the patch to v3-6-test and v4-0-test. Thanks!
Pushed to v3-6-test and autobuild-v4-0-test.
Pushed to v4-0-test. Closing out bug report. Thanks!