winbindd: idmap_rid: don't rely on the static domain list
commite92edf0db5b4f58666b7826448f242f2ceda3d26
authorRalph Boehme <slow@samba.org>
Mon, 25 Sep 2017 13:42:08 +0000 (25 15:42 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 14 Dec 2017 11:22:18 +0000 (14 12:22 +0100)
tree62261f8d32203e3fa67d953e92009c815444332c
parent5724d651c450a1980ec5899e1afa870060c7ae59
winbindd: idmap_rid: don't rely on the static domain list

The domain list in the idmap child is inherited from the parent winbindd
process and may not contain all domains in case enumerating trusted
domains didn't finish before the first winbind request that triggers the
idmap child fork comes along.

The previous commits added the domain SID as an additional argument to
the wbint_UnixIDs2Sids request, storing the domain SID in struct
idmap_domain.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13052

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 108675c4cf4c3d5bd29468255743423a56bd1471)
source3/winbindd/idmap_rid.c