winbindd: avoid multiple wbint_LookupSids/lsa_LookupSids calls to the same domain
authorStefan Metzmacher <metze@samba.org>
Fri, 10 Mar 2017 15:53:53 +0000 (16:53 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 11 Mar 2017 23:56:14 +0000 (00:56 +0100)
commit9eb46d587a2218ed7048c0df65ee4bf2cd6bbeb1
tree53051a0e1f2fe732837d96b47d75c1843866931a
parenta860400725c194eeb7a849eba6b5849c4248498f
winbindd: avoid multiple wbint_LookupSids/lsa_LookupSids calls to the same domain

find_lookup_domain_from_sid() returns the same domain for all non local
sids on a domain member. We should not chunk one wb_lookupsids_send/recv
into multiple wbint_LookupSids_send/recv to the same 'lookup' domain,
just because the requested SIDs don't all belong to the same domain.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Sun Mar 12 00:56:14 CET 2017 on sn-devel-144
source3/winbindd/wb_lookupsids.c