summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-12-13 09:26:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:22 -0500
commit6acf7a782cdd70e674af12ab12975b59ce29c2d7 (patch)
treecf2a63b1ffe8656fbe5996ecb6524a92b4cd8772 /source4
parent1971d529b44c8ab7301d824a2add04abc57b72c3 (diff)
downloadsamba-6acf7a782cdd70e674af12ab12975b59ce29c2d7.tar.gz
samba-6acf7a782cdd70e674af12ab12975b59ce29c2d7.tar.bz2
samba-6acf7a782cdd70e674af12ab12975b59ce29c2d7.zip
r4169: add descriptions about binding and unc strings to the
smbtorture --usage --help output metze (This used to be commit 26a7f4cf5ec4e3697a715f4880468c7f30ba5948)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/torture.c46
1 files changed, 45 insertions, 1 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c
index 192ec4b64b..c4dde45847 100644
--- a/source4/torture/torture.c
+++ b/source4/torture/torture.c
@@ -2567,6 +2567,50 @@ static void usage(poptContext pc)
poptPrintUsage(pc, stdout, 0);
printf("\n");
+ printf("The binding format is:\n\n");
+
+ 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(" '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");
+ printf(" string.\n\n");
+
+ printf(" 'flags' can include a SMB pipe name if using the ncacn_np transport or\n");
+ printf(" a TCP port number if using the ncacn_ip_tcp transport, otherwise they\n");
+ printf(" will be auto-determined.\n\n");
+
+ printf(" other recognised flags are:\n\n");
+
+ printf(" sign : enable ntlmssp signing\n");
+ printf(" seal : enable ntlmssp sealing\n");
+ printf(" connect : enable rpc connect level auth (auth, but no sign or seal)\n");
+ printf(" validate: enable the NDR validator\n");
+ printf(" print: enable debugging of the packets\n");
+ printf(" bigendian: use bigendian RPC\n");
+ printf(" padcheck: check reply data for non-zero pad bytes\n\n");
+
+ printf(" For example, these all connect to the samr pipe:\n\n");
+
+ printf(" ncacn_np:myserver\n");
+ printf(" ncacn_np:myserver[samr]\n");
+ printf(" ncacn_np:myserver[\\pipe\\samr]\n");
+ printf(" ncacn_np:myserver[/pipe/samr]\n");
+ printf(" ncacn_np:myserver[samr,sign,print]\n");
+ printf(" ncacn_np:myserver[\\pipe\\samr,sign,seal,bigendian]\n");
+ printf(" ncacn_np:myserver[/pipe/samr,seal,validate]\n");
+ printf(" ncacn_np:\n");
+ printf(" ncacn_np:[/pipe/samr]\n\n");
+
+ printf(" ncacn_ip_tcp:myserver\n");
+ printf(" ncacn_ip_tcp:myserver[1024]\n");
+ printf(" ncacn_ip_tcp:myserver[1024,sign,seal]\n\n");
+
+ printf("The unc format is:\n\n");
+
+ printf(" //server/share\n\n");
+
printf("tests are:");
for (i=0;torture_ops[i].name;i++) {
if ((i%perline)==0) {
@@ -2577,7 +2621,7 @@ static void usage(poptContext pc)
printf("\n\n");
printf("default test is ALL\n");
-
+
exit(1);
}