git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90b3890
)
s4-smbtorture: Fix test_SamLogon() for netlogon servers not yet supporting
author
Günther Deschner
<gd@samba.org>
Fri, 29 May 2009 11:16:25 +0000
(13:16 +0200)
committer
Günther Deschner
<gd@samba.org>
Fri, 29 May 2009 11:17:53 +0000
(13:17 +0200)
validation level 6.
Guenther
source4/torture/rpc/samr.c
patch
|
blob
|
history
diff --git
a/source4/torture/rpc/samr.c
b/source4/torture/rpc/samr.c
index a1a60bf5b4631760864a64c4081184938d6e883c..55fbb448281ac8032467bcd8820d489c814845f2 100644
(file)
--- 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;