idmap_autorid: fix ID_REQUIRE_TYPE for more than one SID for an unknown domain
commitedc8659b5055e3b8adec83417846a76147ee1408
authorStefan Metzmacher <metze@samba.org>
Fri, 17 Feb 2023 15:51:42 +0000 (17 16:51 +0100)
committerJule Anger <janger@samba.org>
Thu, 30 Mar 2023 15:10:10 +0000 (30 15:10 +0000)
treed6de4bcf6c5ba5028f5cad7e838329a489554731
parent148d5ad7698d154731dfa092b0c6314c71f38086
idmap_autorid: fix ID_REQUIRE_TYPE for more than one SID for an unknown domain

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_TYPE_NOT_SPECIFIED.
It means the winbindd parent only retries the first sid.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15318

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit a9583b5f96fe3fbf9c1ee545fa868fd705aef3e0)
source3/winbindd/idmap_autorid.c