From: Stefan Metzmacher Date: Thu, 11 Mar 2021 14:27:01 +0000 (+0100) Subject: s4:libnet_rpc: avoid reusing the assoc_group_id of the lsa connection X-Git-Tag: tevent-0.11.0~1559 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=11f3c852c75035986de745a91686e83c1d36bb3e;p=thirdparty%2Fsamba.git s4:libnet_rpc: avoid reusing the assoc_group_id of the lsa connection This was an unexpected side effect introduced in commit 1b17d9a587bf3600d449c2481fe1191793479e32. Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Mar 11 22:50:02 UTC 2021 on sn-devel-184 --- diff --git a/source4/libnet/libnet_rpc.c b/source4/libnet/libnet_rpc.c index a491a427ddc..91c538fa58c 100644 --- a/source4/libnet/libnet_rpc.c +++ b/source4/libnet/libnet_rpc.c @@ -791,6 +791,12 @@ static void continue_epm_map_binding_send(struct composite_context *c) s->final_binding = dcerpc_binding_dup(s, s->lsa_pipe->binding); if (composite_nomem(s->final_binding, c)) return; + /* + * We don't want to inherit the assoc_group_id from the + * lsa_pipe here! + */ + dcerpc_binding_set_assoc_group_id(s->final_binding, 0); + epm_creds = cli_credentials_init_anon(s); if (composite_nomem(epm_creds, c)) return;