s3:rpc_client: use address "0.0.0.0" and port "135" for epmapper requests
authorStefan Metzmacher <metze@samba.org>
Thu, 30 Jan 2014 08:23:40 +0000 (09:23 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 11 Feb 2014 15:20:31 +0000 (16:20 +0100)
Note: binding->host = NULL lets dcerpc_binding_build_tower()
use "0.0.0.0".

This matches Windows clients.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/rpc_client/cli_pipe.c

index ce29ecb801ae8fa1b779a2aa71e2ee2fcafeec18..39ddb2e8b15ec39c5c53111d2aaa0873d30d6f63 100644 (file)
@@ -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) {