s4:libnet_rpc: avoid reusing the assoc_group_id of the lsa connection
authorStefan Metzmacher <metze@samba.org>
Thu, 11 Mar 2021 14:27:01 +0000 (15:27 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 11 Mar 2021 22:50:02 +0000 (22:50 +0000)
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

source4/libnet/libnet_rpc.c

index a491a427ddcf6b990ee09bafa5e6cf4f506bdd72..91c538fa58c4525541e1dc98de45087a7be1ec51 100644 (file)
@@ -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;