winbindd: idmap_rid: don't rely on the static domain list
authorRalph Boehme <slow@samba.org>
Mon, 25 Sep 2017 13:42:08 +0000 (15:42 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 10 Oct 2017 13:51:27 +0000 (15:51 +0200)
commit108675c4cf4c3d5bd29468255743423a56bd1471
treea47393b6dec48938790ca39067880877e7196a59
parent71f99cb132f4c26f9febac6cb7dcd79f4940216a
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>
source3/winbindd/idmap_rid.c