STEP03c: rpc_pipe_bind => dcerpc_security_allocate
authorStefan Metzmacher <metze@samba.org>
Thu, 9 Jan 2014 18:35:41 +0000 (19:35 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 4 Jun 2019 10:45:39 +0000 (12:45 +0200)
source3/rpc_client/cli_pipe.c

index 9dff4250539e211ac6178c831c8d09d159166b72..2c7766035ba89d29d17ea2bcea277e1aa21df114 100644 (file)
@@ -2140,6 +2140,11 @@ NTSTATUS rpc_pipe_bind(struct rpc_pipe_client *cli,
                goto fail;
        }
 
+       cli->sec = dcerpc_security_allocate(cli, cli->conn,
+                                          auth->auth_type,
+                                          auth->auth_level,
+                                          auth->auth_ctx);
+
        call = dcerpc_call_allocate(frame, cli->assoc, NULL, NULL);
 
        pres[0] = cli->pres;