]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libnet_join: make use of dcerpc_binding_handle_transport_session_key()
authorStefan Metzmacher <metze@samba.org>
Sat, 14 Sep 2024 13:52:29 +0000 (15:52 +0200)
committerJule Anger <janger@samba.org>
Thu, 12 Jun 2025 11:27:14 +0000 (11:27 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 56175a0947fbb56d151fca057cf9696d55ea5d82)

source3/libnet/libnet_join.c

index f98d132d50f80b0a925f100225d860587adcfc7d..dc924ad199acde20c24e49d50dbca1c5a3408159 100644 (file)
@@ -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)));