From ded957614bf70560f3ffa6b6021eba37f2e2dbbb Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 30 Jan 2014 09:23:40 +0100 Subject: s3:rpc_client: use address "0.0.0.0" and port "135" for epmapper requests Note: binding->host = NULL lets dcerpc_binding_build_tower() use "0.0.0.0". This matches Windows clients. Signed-off-by: Stefan Metzmacher Reviewed-by: Guenther Deschner --- source3/rpc_client/cli_pipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index ce29ecb801..39ddb2e8b1 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -2582,8 +2582,8 @@ static NTSTATUS rpc_pipe_get_tcp_port(const char *host, map_binding->transport = NCACN_IP_TCP; map_binding->object = table->syntax_id; - map_binding->host = host; /* needed? */ - map_binding->endpoint = "0"; /* correct? needed? */ + map_binding->host = NULL; + map_binding->endpoint = "135"; map_tower = talloc_zero(tmp_ctx, struct epm_twr_t); if (map_tower == NULL) { -- cgit