From: Volker Lendecke Date: Tue, 26 Jan 2021 15:22:35 +0000 (+0100) Subject: rpcclient: Don't put a port into the epm_map request X-Git-Tag: tevent-0.11.0~1450 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=87137e340cc8c9999fc5ff55f405a825a59dc4b9;p=thirdparty%2Fsamba.git 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 --- 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;