diff options
author | Günther Deschner <gd@samba.org> | 2009-05-29 13:16:25 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-05-29 13:17:53 +0200 |
commit | 059401e4575922ee23656b880c2c2ef230a7cebe (patch) | |
tree | d5b21c2760a48d657ca7254c04ff194a718d47a1 /source4/torture | |
parent | 90b38906541de554e3964d96ed83a7c71b5ea05c (diff) | |
download | samba-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
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/samr.c | 4 |
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; |