summaryrefslogtreecommitdiff
path: root/source3/torture/locktest.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/torture/locktest.c')
-rw-r--r--source3/torture/locktest.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/source3/torture/locktest.c b/source3/torture/locktest.c
index 0ed8c5f904..ad30537e69 100644
--- a/source3/torture/locktest.c
+++ b/source3/torture/locktest.c
@@ -25,6 +25,7 @@
static fstring password;
static fstring username;
static int got_pass;
+static BOOL use_kerberos;
static int numops = 1000;
static BOOL showall;
static BOOL analyze;
@@ -173,6 +174,8 @@ struct cli_state *connect_one(char *share)
return NULL;
}
+ c->use_kerberos = use_kerberos;
+
if (!cli_session_request(c, &calling, &called)) {
DEBUG(0,("session request to %s failed\n", called.name));
cli_shutdown(c);
@@ -525,6 +528,7 @@ static void usage(void)
locktest //server1/share1 //server2/share2 [options..]\n\
options:\n\
-U user%%pass\n\
+ -k use kerberos\n\
-s seed\n\
-o numops\n\
-u hide unlock fails\n\
@@ -574,8 +578,17 @@ static void usage(void)
seed = time(NULL);
- while ((opt = getopt(argc, argv, "U:s:ho:aAW:O")) != EOF) {
+ while ((opt = getopt(argc, argv, "U:s:ho:aAW:Ok")) != EOF) {
switch (opt) {
+ case 'k':
+#ifdef HAVE_KRB5
+ use_kerberos = True;
+ got_pass = True;
+#else
+ d_printf("No kerberos support compiled in\n");
+ exit(1);
+#endif
+ break;
case 'U':
pstrcpy(username,optarg);
p = strchr_m(username,'%');