1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

s3:utils/net_rpc: make use of dcerpc_binding_handle_transport_session_key()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Stefan Metzmacher 2024-09-14 15:54:25 +02:00 committed by Ralph Boehme
parent 56175a0947
commit a14ac349de
2 changed files with 6 additions and 3 deletions

View File

@ -6118,7 +6118,8 @@ static NTSTATUS rpc_trustdom_add_internals(struct net_context *c,
init_lsa_String(&lsa_acct_name, acct_name);
status = cli_get_session_key(frame, pipe_hnd, &session_key);
status = dcerpc_binding_handle_transport_session_key(
b, frame, &session_key);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("Error getting session_key of SAM pipe. Error was %s\n",
nt_errstr(status)));
@ -6803,7 +6804,8 @@ static NTSTATUS vampire_trusted_domain(struct rpc_pipe_client *pipe_hnd,
data = data_blob(info->password.password->data,
info->password.password->length);
nt_status = cli_get_session_key(mem_ctx, pipe_hnd, &session_key);
nt_status = dcerpc_binding_handle_transport_session_key(
b, mem_ctx, &session_key);
if (!NT_STATUS_IS_OK(nt_status)) {
DEBUG(0, ("Could not retrieve session key: %s\n", nt_errstr(nt_status)));
goto done;

View File

@ -260,7 +260,8 @@ static NTSTATUS connect_and_get_info(TALLOC_CTX *mem_ctx,
return status;
}
status = cli_get_session_key(mem_ctx, *pipe_hnd, session_key);
status = dcerpc_binding_handle_transport_session_key(
(*pipe_hnd)->binding_handle, mem_ctx, session_key);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("Error getting session_key of LSA pipe. Error was %s\n",
nt_errstr(status)));