winbindd: defer the setup_child() from init_idmap_child()
commit28e020c0a863411cfa95e3b1ed943d922b8635bd
authorStefan Metzmacher <metze@samba.org>
Fri, 11 Sep 2020 13:42:42 +0000 (11 15:42 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 23 Oct 2020 03:25:36 +0000 (23 03:25 +0000)
tree9bf2e3726dd7a876faadc0dba5d72759f01ebcc4
parentb8c74b7b46d1c7f6b66e565ee08f8c88d6dc2cc4
winbindd: defer the setup_child() from init_idmap_child()

At startup we trigger a wb_parent_idmap_setup_send() and make
sure setup_child() is called just before wb_parent_idmap_setup_recv()
finished.

This makes sure our view of the idmap config in the parent matches
what we have in the child.

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_idmap.c