While debugging something else I found a case where wb_lookupsid_send() tried to resolve a Null-SID, when called via wb_getgrsid_send(). The thing is that wb_xids2sids_recv() can return a NT_STATUS_OK together with a Null-SID in order to indicate that the uid/gid can't be mapped to a valid SID. winbindd_getpwuid_uid2sid_done() has a is_null_sid() check and returns NT_STATUS_NO_SUCH_USER, but this is missing in winbindd_getgrgid_gid2sid_done()
Created attachment 15779 [details] Patches for v4-12-test
Created attachment 15780 [details] Patches for v4-11-test
Created attachment 15781 [details] Patches for v4-10-test
Karolin, please apply the patches to the relevant branches. Thanks!
(In reply to Andreas Schneider from comment #4) Pushed to autobuild-v4-{12,11,10}-test.
(In reply to Karolin Seeger from comment #5) Pushed to all branches. Closing out bug report. Thanks!