From da3e057b6fdb40b6cf6bdb61b35467f34024a246 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 4 Jan 2011 10:11:09 +0100 Subject: librpc: Added support to accept netbios names. If we have a NCACN_NP pipe, the binding host is the netbios name an not an IP address. --- librpc/rpc/binding.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'librpc') diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c index 7489073677..b7c3a40a0d 100644 --- a/librpc/rpc/binding.c +++ b/librpc/rpc/binding.c @@ -758,7 +758,8 @@ _PUBLIC_ NTSTATUS dcerpc_binding_build_tower(TALLOC_CTX *mem_ctx, /* The 5th contains the network address */ if (num_protocols >= 3 && binding->host) { - if (is_ipaddress(binding->host)) { + if (is_ipaddress(binding->host) || + (binding->host[0] == '\\' && binding->host[1] == '\\')) { status = dcerpc_floor_set_rhs_data(tower->floors, &tower->floors[4], binding->host); } else { -- cgit