From 87137e340cc8c9999fc5ff55f405a825a59dc4b9 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 26 Jan 2021 16:22:35 +0100 Subject: [PATCH] rpcclient: Don't put a port into the epm_map request That's what the server is supposed to fill in for us Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/rpc_client/cli_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 4a0e7693fda..d1fbcc7ca4f 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -2795,7 +2795,7 @@ static NTSTATUS rpc_pipe_get_tcp_port(const char *host, /* create tower for asking the epmapper */ - status = dcerpc_parse_binding(tmp_ctx, "ncacn_ip_tcp:[135]", + status = dcerpc_parse_binding(tmp_ctx, "ncacn_ip_tcp:", &map_binding); if (!NT_STATUS_IS_OK(status)) { goto done; -- 2.47.3