rpcclient: Don't put a port into the epm_map request
authorVolker Lendecke <vl@samba.org>
Tue, 26 Jan 2021 15:22:35 +0000 (16:22 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 19 Mar 2021 07:09:37 +0000 (07:09 +0000)
That's what the server is supposed to fill in for us

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_client/cli_pipe.c

index 4a0e7693fdac0584f9efabd9a819e70b1484e54c..d1fbcc7ca4f035d94845baeb5963cf30bdad95ea 100644 (file)
@@ -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;