diff --git a/source/torture/man/smbtorture.1.xml b/source/torture/man/smbtorture.1.xml
index 194c0d3fb93..18c17435667 100644
--- a/source/torture/man/smbtorture.1.xml
+++ b/source/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/source/torture/smbtorture.c b/source/torture/smbtorture.c
index 3ac7e2a7629..08aa1e49312 100644
--- a/source/torture/smbtorture.c
+++ b/source/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");