summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2021-03-11 15:27:01 +0100
committerJeremy Allison <jra@samba.org>2021-03-11 22:50:02 +0000
commit11f3c852c75035986de745a91686e83c1d36bb3e (patch)
tree4b22fa033bf7c54d0a5f5349e9ca39bd1db08028 /source4/libnet
parent46e6f6ef8436df7e083f34556c25f66f65ea1ce5 (diff)
downloadsamba-11f3c852c75035986de745a91686e83c1d36bb3e.tar.gz
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 <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Mar 11 22:50:02 UTC 2021 on sn-devel-184
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_rpc.c6
1 files changed, 6 insertions, 0 deletions
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;