From 066ecf0c6fb0bc9fc948a70c0e329c4c3d4c09b7 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 27 May 2006 12:16:48 +0000 Subject: r15908: Mention ncalrpc in smbtorture help output Update smbtorture manpage with binding string format explanation (This used to be commit 37f6dc130e697c840676c96aadc295bcde6a0bca) --- source4/torture/man/smbtorture.1.xml | 89 +++++++++++++++++++++++++++++++++++- source4/torture/smbtorture.c | 5 +- 2 files changed, 92 insertions(+), 2 deletions(-) diff --git a/source4/torture/man/smbtorture.1.xml b/source4/torture/man/smbtorture.1.xml index 194c0d3fb9..18c1743566 100644 --- a/source4/torture/man/smbtorture.1.xml +++ b/source4/torture/man/smbtorture.1.xml @@ -40,7 +40,10 @@ -s seed -f max_failures -X - TEST1 TEST2 ... + BINDING-STRING|UNC + TEST1 + TEST2 + ... @@ -62,6 +65,90 @@ If no arguments are specified at all, all available options and tests are listed. + + Binding string format + + The binding string format is: + + TRANSPORT:host[flags] + + Where TRANSPORT is either ncacn_np for SMB, ncacn_ip_tcp for RPC/TCP or ncalrpc for local connections. + + + + '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 + will be auto-determined. + + + + other recognised flags are: + + + + sign + enable ntlmssp signing + + + seal + enable ntlmssp sealing + + + connect + enable rpc connect level auth (auth, but no sign or seal) + + + validate + enable the NDR validator + + + print + enable debugging of the packets + + + bigendian + use bigendian RPC + + + padcheck + check reply data for non-zero pad bytes + + + + For example, these all connect to the samr pipe: + + + ncacn_np:myserver + 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: + ncacn_np:[/pipe/samr] + ncacn_ip_tcp:myserver + ncacn_ip_tcp:myserver[1024] + ncacn_ip_tcp:myserver[1024,sign,seal] + ncalrpc: + + + + + + UNC Format + + The UNC format is: + + //server/share + + diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c index 3ac7e2a762..08aa1e4931 100644 --- a/source4/torture/smbtorture.c +++ b/source4/torture/smbtorture.c @@ -142,7 +142,8 @@ static void usage(poptContext pc) printf(" TRANSPORT:host[flags]\n\n"); - printf(" where TRANSPORT is either ncacn_np for SMB or ncacn_ip_tcp for RPC/TCP\n\n"); + printf(" where TRANSPORT is either ncacn_np for SMB, ncacn_ip_tcp for RPC/TCP\n"); + printf(" or ncalrpc for local connections.\n\n"); printf(" 'host' is an IP or hostname or netbios name. If the binding string\n"); printf(" identifies the server side of an endpoint, 'host' may be an empty\n"); @@ -178,6 +179,8 @@ static void usage(poptContext pc) printf(" ncacn_ip_tcp:myserver[1024]\n"); printf(" ncacn_ip_tcp:myserver[1024,sign,seal]\n\n"); + printf(" ncalrpc:\n\n"); + printf("The UNC format is:\n\n"); printf(" //server/share\n\n"); -- cgit