summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-01-11 06:15:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:41 -0500
commit1a71331ebca1f6b7d90d696468e44f1ce4ec08f8 (patch)
tree86333d6b0fe1dd298e813bfc01c22c16bae79a74 /source4/torture/rpc
parent7b4d1a4448f3b1ed3920c26619a5f45c6d269d6c (diff)
downloadsamba-1a71331ebca1f6b7d90d696468e44f1ce4ec08f8.tar.gz
samba-1a71331ebca1f6b7d90d696468e44f1ce4ec08f8.tar.bz2
samba-1a71331ebca1f6b7d90d696468e44f1ce4ec08f8.zip
r4675: Prevent global warming, and save tridge's sainity by short-cutting the
testsuite for all the different flag types. (We really only need to know if we are getting the session key crypto stuff right, and one call can tell us that). Andrew Bartlett (This used to be commit 8807498f6d3ff248c4d42bf18db45cfe25bd3b2f)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/samlogon.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/source4/torture/rpc/samlogon.c b/source4/torture/rpc/samlogon.c
index 3e12054e03..afb30b1987 100644
--- a/source4/torture/rpc/samlogon.c
+++ b/source4/torture/rpc/samlogon.c
@@ -1035,6 +1035,7 @@ static const struct ntlm_tests {
const char *name;
BOOL expect_fail;
} test_table[] = {
+ {test_lmv2_ntlmv2, "NTLMv2 and LMv2", False},
{test_lm, "LM", False},
{test_lm_ntlm, "LM and NTLM", False},
{test_lm_ntlm_both_broken, "LM and NTLM, both broken", False},
@@ -1042,7 +1043,6 @@ static const struct ntlm_tests {
{test_ntlm_in_lm, "NTLM in LM", False},
{test_ntlm_in_both, "NTLM in both", False},
{test_ntlmv2, "NTLMv2", False},
- {test_lmv2_ntlmv2, "NTLMv2 and LMv2", False},
{test_lmv2, "LMv2", False},
{test_ntlmv2_lmv2_broken, "NTLMv2 and LMv2, LMv2 broken", False},
{test_ntlmv2_ntlmv2_broken, "NTLMv2 and LMv2, NTLMv2 broken", False},
@@ -1065,7 +1065,8 @@ static const struct ntlm_tests {
try a netlogon SamLogon
*/
static BOOL test_SamLogon(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
- struct creds_CredentialState *creds)
+ struct creds_CredentialState *creds,
+ int n_subtests)
{
int i, v, l, f;
BOOL ret = True;
@@ -1106,6 +1107,9 @@ static BOOL test_SamLogon(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
for (f=0;f<ARRAY_SIZE(function_levels);f++) {
for (i=0; test_table[i].fn; i++) {
+ if (n_subtests && (i > n_subtests)) {
+ continue;
+ }
for (v=0;v<ARRAY_SIZE(validation_levels);v++) {
for (l=0;l<ARRAY_SIZE(logon_levels);l++) {
char *error_string = NULL;
@@ -1271,7 +1275,7 @@ BOOL torture_rpc_samlogon(void)
ret = False;
}
- if (!test_SamLogon(p, mem_ctx, creds)) {
+ if (!test_SamLogon(p, mem_ctx, creds, 0)) {
ret = False;
}
@@ -1287,7 +1291,7 @@ BOOL torture_rpc_samlogon(void)
ret = False;
}
- if (!test_SamLogon(p, mem_ctx, creds)) {
+ if (!test_SamLogon(p, mem_ctx, creds, 1)) {
ret = False;
}
}