winbindd: add generic wb_parent_idmap_setup_send/recv() helpers
authorStefan Metzmacher <metze@samba.org>
Fri, 11 Sep 2020 10:16:00 +0000 (12:16 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 23 Oct 2020 03:25:36 +0000 (03:25 +0000)
commit209e81a2ea8c972ee57e2f0c9579da843c0e2ac7
tree35bd9103ac7083cdcffab3fe7f977a0c88a11e7f
parentcd9a9702c1f97c47bd3447e2014eeff3e56268cf
winbindd: add generic wb_parent_idmap_setup_send/recv() helpers

This is more or less a copy of wb_xids2sids_init_dom_maps_send/recv,
but it's more generic and doesn't imply global state.

It also closes a initialization race by using a tevent_queue to
serialize the calls.

In the next commits we'll replace wb_xids2sids_init_dom_maps_send/recv.

We'll also use the new function in the wb_sids2xids code.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source3/winbindd/winbindd.h
source3/winbindd/winbindd_idmap.c
source3/winbindd/winbindd_proto.h