From 3b057022a570a1fb68e03c477a6989e7d1e7cef2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 4 Dec 2007 11:38:57 +0100 Subject: [PATCH] add SESSSETUP_BENCH --- source/torture/torture.c | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/source/torture/torture.c b/source/torture/torture.c index 1aea6145b8a..48b7aa60c03 100644 --- a/source/torture/torture.c +++ b/source/torture/torture.c @@ -4780,6 +4780,46 @@ static bool run_error_map_extract(int dummy) { return True; } +static bool run_sesssetup_bench(int dummy) +{ + static struct cli_state *c; + NTSTATUS status; + int i; + + if (!(c = open_nbt_connection())) { + return false; + } + + if (!cli_negprot(c)) { + printf("%s rejected the NT-error negprot (%s)\n", host, + cli_errstr(c)); + cli_shutdown(c); + return false; + } + + for (i=0; ivuid = 0; + } + + return true; +} + static bool subst_test(const char *str, const char *user, const char *domain, uid_t uid, gid_t gid, const char *expected) { @@ -5070,6 +5110,7 @@ static struct { {"CHKPATH", torture_chkpath_test, 0}, {"FDSESS", run_fdsesstest, 0}, { "EATEST", run_eatest, 0}, + { "SESSSETUP_BENCH", run_sesssetup_bench, 0}, { "LOCAL-SUBSTITUTE", run_local_substitute, 0}, { "LOCAL-GENCACHE", run_local_gencache, 0}, {NULL, NULL, 0}};