summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-05-29 13:16:25 +0200
committerGünther Deschner <gd@samba.org>2009-05-29 13:17:53 +0200
commit059401e4575922ee23656b880c2c2ef230a7cebe (patch)
treed5b21c2760a48d657ca7254c04ff194a718d47a1
parent90b38906541de554e3964d96ed83a7c71b5ea05c (diff)
downloadsamba-059401e4575922ee23656b880c2c2ef230a7cebe.tar.gz
samba-059401e4575922ee23656b880c2c2ef230a7cebe.tar.bz2
samba-059401e4575922ee23656b880c2c2ef230a7cebe.zip
s4-smbtorture: Fix test_SamLogon() for netlogon servers not yet supporting
validation level 6. Guenther
-rw-r--r--source4/torture/rpc/samr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c
index a1a60bf5b4..55fbb44828 100644
--- a/source4/torture/rpc/samr.c
+++ b/source4/torture/rpc/samr.c
@@ -2745,6 +2745,10 @@ static bool test_SamLogon(struct torture_context *tctx,
r.in.validation_level = 6;
status = dcerpc_netr_LogonSamLogonEx(p, tctx, &r);
+ if (NT_STATUS_EQUAL(status, NT_STATUS_INVALID_INFO_CLASS)) {
+ r.in.validation_level = 3;
+ status = dcerpc_netr_LogonSamLogonEx(p, tctx, &r);
+ }
if (!NT_STATUS_IS_OK(status)) {
torture_assert_ntstatus_equal(tctx, status, expected_result, "LogonSamLogonEx failed");
return true;