From 656c04da48a3885d14ff4939d5225b8aa037f0d5 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 18 Oct 2004 11:43:26 +0000 Subject: r3032: Somewhat stricter syntax for binding strings: [] is now mandatory : after the hostname is no longer allowed examples of allowed binding strings: ncacn_np:myhost[samr] ncacn_ip_tcp:10.0.0.1[1045] ncacn_ip_tcp:2001:7b8:37b:1:210:dcff:fecb:a9e3[1024,sign,seal] ncacn_np:myhost ncacn_ip_tcp:192.168.4.2 308FB580-1EB2-11CA-923B-08002B1075A7@ncacn_ip_tcp:192.168.4.2 308FB580-1EB2-11CA-923B-08002B1075A7@ncacn_ip_tcp:192.168.4.2[,print] Note that the last two lines are not recognized by smbtorture as a binding string yet. dcerpc_parse_binding() does accept them though. (This used to be commit c15862e778507287bddef7967383d4b5d22eaee9) --- prog_guide.txt | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'prog_guide.txt') diff --git a/prog_guide.txt b/prog_guide.txt index a8becef80a..8ab96fb101 100644 --- a/prog_guide.txt +++ b/prog_guide.txt @@ -525,12 +525,13 @@ string. The format is: - TRANSPORT:host:[flags] or - TRANSPORT:[flags] (for server side or general specifications) + TRANSPORT:host[flags] where TRANSPORT is either ncacn_np for SMB or ncacn_ip_tcp for RPC/TCP -"host" is an IP or hostname or netbios name +"host" is an IP or hostname or netbios name. If the binding string +identifies the server side of an endpoint, "host" may be an empty +string. "flags" can include a SMB pipe name if using the ncacn_np transport or a TCP port number if using the ncacn_ip_tcp transport, otherwise they @@ -550,27 +551,24 @@ other recognised flags are: For example, these all connect to the samr pipe: ncacn_np:myserver - ncacn_np:myserver:samr - ncacn_np:myserver:samr,seal - ncacn_np:myserver:\pipe\samr - ncacn_np:myserver:/pipe/samr ncacn_np:myserver[samr] ncacn_np:myserver[\pipe\samr] ncacn_np:myserver[/pipe/samr] - ncacn_np:myserver:[samr,sign,print] - ncacn_np:myserver:[\pipe\samr,sign,seal,bigendian] - ncacn_np:myserver:[/pipe/samr,seal,validate] + ncacn_np:myserver[samr,sign,print] + ncacn_np:myserver[\pipe\samr,sign,seal,bigendian] + ncacn_np:myserver[/pipe/samr,seal,validate] + ncacn_np: + ncacn_np:[/pipe/samr] ncacn_ip_tcp:myserver - ncacn_ip_tcp:myserver:1024 ncacn_ip_tcp:myserver[1024] - ncacn_ip_tcp:myserver:[1024,sign,seal] + ncacn_ip_tcp:myserver[1024,sign,seal] IDEA: Maybe extend UNC names like this? smbclient //server/share - smbclient //server/share:[sign,seal,spnego] + smbclient //server/share[sign,seal,spnego] DCERPC Handles -------------- -- cgit