]> 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)
committerRalph Boehme <slow@samba.org>
Thu, 26 Sep 2024 15:22:45 +0000 (15:22 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/libnet/libnet_join.c

index d49d54436bb567948ef7b087dadaf9a720fffc3c..ce99429a4f5b761b1208a131ac7ebd828e0d86be 100644 (file)
@@ -1363,7 +1363,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)));