diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-03-04 00:24:24 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-03-04 00:24:24 +0000 |
commit | c40d0d5783300ee8dfcff1382becf8f6c0f4ff25 (patch) | |
tree | ff7bc4b2406aaf7b99d163ee93da7847843fe7ce /source3/torture/torture.c | |
parent | 52b3390ca6f72c7478ededed6aadcabee835e273 (diff) | |
download | samba-c40d0d5783300ee8dfcff1382becf8f6c0f4ff25.tar.gz samba-c40d0d5783300ee8dfcff1382becf8f6c0f4ff25.tar.bz2 samba-c40d0d5783300ee8dfcff1382becf8f6c0f4ff25.zip |
added -k options for kerberos to smbtorture and locktest
(This used to be commit 46b89bc9979229abc6e9f2f8c585a22dd4f22902)
Diffstat (limited to 'source3/torture/torture.c')
-rw-r--r-- | source3/torture/torture.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 5300bfd274..8fbc5dbeb0 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -32,6 +32,7 @@ static fstring randomfname; static BOOL use_oplocks; static BOOL use_level_II_oplocks; static char *client_txt = "client_oplocks.txt"; +static BOOL use_kerberos; BOOL torture_showall = False; @@ -107,6 +108,8 @@ static BOOL open_nbt_connection(struct cli_state *c) return False; } + c->use_kerberos = use_kerberos; + c->timeout = 120000; /* set a really long timeout (2 minutes) */ if (use_oplocks) c->use_oplocks = True; if (use_level_II_oplocks) c->use_level_II_oplocks = True; @@ -3197,6 +3200,7 @@ static void usage(void) printf("\t-d debuglevel\n"); printf("\t-U user%%pass\n"); + printf("\t-k use kerberos\n"); printf("\t-N numprocs\n"); printf("\t-n my_netbios_name\n"); printf("\t-W workgroup\n"); @@ -3276,7 +3280,7 @@ static void usage(void) fstrcpy(workgroup, lp_workgroup()); - while ((opt = getopt(argc, argv, "hW:U:n:N:O:o:m:Ld:Ac:")) != EOF) { + while ((opt = getopt(argc, argv, "hW:U:n:N:O:o:m:Ld:Ac:k")) != EOF) { switch (opt) { case 'W': fstrcpy(workgroup,optarg); @@ -3308,6 +3312,15 @@ static void usage(void) case 'c': client_txt = optarg; break; + case 'k': +#ifdef HAVE_KRB5 + use_kerberos = True; + gotpass = True; +#else + d_printf("No kerberos support compiled in\n"); + exit(1); +#endif + break; case 'U': pstrcpy(username,optarg); p = strchr_m(username,'%'); |