winbindd: make a copy of xid's in wb_xids2sids_send()
authorRalph Boehme <slow@samba.org>
Thu, 21 Feb 2019 17:34:51 +0000 (18:34 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 5 Mar 2019 07:39:27 +0000 (07:39 +0000)
commita76277af385b10518dccf83ccb1b49173d625881
tree84145cdcadcf932ff9fe13b0c0471e1658fef848
parent0f1525d430ec4975952520b00cbd4c5e49f9b097
winbindd: make a copy of xid's in wb_xids2sids_send()

This is in preparation of setting the result of the mapping in the top-
level callback wb_xids2sids_done(), not in the per-idmap-domain callback
wb_xids2sids_dom_done().

When caching the mapping we need the id-type from the backend, so we
need a way to pass up that information from wb_xids2sids_dom_done() up
to wb_xids2sids_done()

The xids array copy gets passed from wb_xids2sids_send() to
wb_xids2sids_dom_send(), so wb_xids2sids_dom_done() can then directly
update the top-level copy.

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

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