r15908: Mention ncalrpc in smbtorture help output
authorJelmer Vernooij <jelmer@samba.org>
Sat, 27 May 2006 12:16:48 +0000 (12:16 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:08:39 +0000 (14:08 -0500)
Update smbtorture manpage with binding string format explanation

source/torture/man/smbtorture.1.xml
source/torture/smbtorture.c

index 194c0d3fb93d108a4369f4fb3678f4c55282a038..18c174356672add11befb0f0525b12b438dc3442 100644 (file)
                <arg choice="opt">-s seed</arg>
                <arg choice="opt">-f max_failures</arg>
                <arg choice="opt">-X</arg>
-               TEST1 TEST2 ...
+               <arg choice="req">BINDING-STRING|UNC</arg>
+               <arg choice="req">TEST1</arg>
+               <arg choice="opt">TEST2</arg>
+               <arg choice="opt">...</arg>
        </cmdsynopsis>
        
 </refsynopsisdiv>
        <para>If no arguments are specified at all, all available options 
                and tests are listed.</para>
 
+       <refsect2>
+               <title>Binding string format</title>
+
+               <para>The binding string format is:</para>
+
+               <para>TRANSPORT:host[flags]</para>
+
+               <para>Where TRANSPORT is either ncacn_np for SMB, ncacn_ip_tcp for RPC/TCP or ncalrpc for local connections.
+               </para>
+
+               <para>
+               '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.
+               </para>
+
+               <para>
+               '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.
+               </para>
+
+               <para>
+               other recognised flags are:
+               </para>
+
+         <variablelist>
+                 <varlistentry><term>sign</term>
+                         <listitem><para>enable ntlmssp signing</para></listitem>
+                 </varlistentry>
+
+                 <varlistentry><term>seal</term>
+                         <listitem><para>enable ntlmssp sealing</para></listitem>
+                 </varlistentry>
+
+                 <varlistentry><term>connect</term>
+                         <listitem><para>enable rpc connect level auth (auth, but no sign or seal)</para></listitem>
+                 </varlistentry>
+
+                 <varlistentry><term>validate</term>
+                         <listitem><para>enable the NDR validator</para></listitem>
+                 </varlistentry>
+
+                 <varlistentry><term>print</term>
+                         <listitem><para>enable debugging of the packets</para></listitem>
+                 </varlistentry>
+
+                 <varlistentry><term>bigendian</term>
+                         <listitem><para>use bigendian RPC</para></listitem>
+                 </varlistentry>
+
+                 <varlistentry><term>padcheck</term>
+                         <listitem><para>check reply data for non-zero pad bytes</para></listitem>
+                 </varlistentry>
+         </variablelist>
+
+         <para>For example, these all connect to the samr pipe:</para>
+
+         <itemizedlist>
+           <listitem><para>ncacn_np:myserver</para></listitem>
+           <listitem><para>ncacn_np:myserver[samr]</para></listitem>
+           <listitem><para>ncacn_np:myserver[\\pipe\\samr]</para></listitem>
+           <listitem><para>ncacn_np:myserver[/pipe/samr]</para></listitem>
+           <listitem><para>ncacn_np:myserver[samr,sign,print]</para></listitem>
+           <listitem><para>ncacn_np:myserver[\\pipe\\samr,sign,seal,bigendian]</para></listitem>
+           <listitem><para>ncacn_np:myserver[/pipe/samr,seal,validate]</para></listitem>
+           <listitem><para>ncacn_np:</para></listitem>
+           <listitem><para>ncacn_np:[/pipe/samr]</para></listitem>
+           <listitem><para>ncacn_ip_tcp:myserver</para></listitem>
+           <listitem><para>ncacn_ip_tcp:myserver[1024]</para></listitem>
+           <listitem><para>ncacn_ip_tcp:myserver[1024,sign,seal]</para></listitem>
+           <listitem><para>ncalrpc:</para></listitem>
+         </itemizedlist>
+
+       </refsect2>
+
+       <refsect2>
+               <title>UNC Format</title>
+
+               <para>The UNC format is:</para>
+
+               <para>//server/share</para>
+       </refsect2>
+
 </refsect1>
 
 
index 3ac7e2a762954d1e246f0cc934dc189b0036923d..08aa1e4931273a1b2551c66ccedf56176ae2cce0 100644 (file)
@@ -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");