When we see a trusted domain SID for the first time, idmap_autorid returns ID_REQUIRE_TYPE only for the first sid and leaves the others with ID_UNKNOWN. It means the winbindd parent only retries the first sid.
This bug was referenced in samba master: a9583b5f96fe3fbf9c1ee545fa868fd705aef3e0
Created attachment 17802 [details] git-am fix for 4.18.next, 4.17.next Cherry-picked from master.
Pushed to autobuild-v4-{18,17}-test.
This bug was referenced in samba v4-17-test: edc8659b5055e3b8adec83417846a76147ee1408
This bug was referenced in samba v4-18-test: fd7e0aaa196c83f28d76a0309d09c27e5eedae59
Closing out bug report. Thanks!
This bug was referenced in samba v4-18-stable (Release samba-4.18.2): fd7e0aaa196c83f28d76a0309d09c27e5eedae59
This bug was referenced in samba v4-17-stable (Release samba-4.17.8): edc8659b5055e3b8adec83417846a76147ee1408