From: Stefan Metzmacher Date: Sat, 14 Sep 2024 13:52:29 +0000 (+0200) Subject: s3:libnet_join: make use of dcerpc_binding_handle_transport_session_key() X-Git-Tag: samba-4.21.7~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=505775ba876ff5454f80b104a666c318a491e56d;p=thirdparty%2Fsamba.git s3:libnet_join: make use of dcerpc_binding_handle_transport_session_key() Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme (cherry picked from commit 56175a0947fbb56d151fca057cf9696d55ea5d82) --- diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c index f98d132d50f..dc924ad199a 100644 --- a/source3/libnet/libnet_join.c +++ b/source3/libnet/libnet_join.c @@ -1370,7 +1370,8 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx, b = pipe_hnd->binding_handle; - status = cli_get_session_key(mem_ctx, pipe_hnd, &session_key); + status = dcerpc_binding_handle_transport_session_key( + b, mem_ctx, &session_key); if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("Error getting session_key of SAM pipe. Error was %s\n", nt_errstr(status)));