diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-03-16 11:24:25 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-03-17 09:53:11 +0100 |
commit | ba3b9fa36b0ffcb2cfcee34dab6d9a544a8cd9fd (patch) | |
tree | eaa3a094e4f4533641ba1861616894c25d73de92 | |
parent | f48fb0d908dec53e407c9cd0f843ee7d83e31580 (diff) | |
download | samba-ba3b9fa36b0ffcb2cfcee34dab6d9a544a8cd9fd.tar.gz samba-ba3b9fa36b0ffcb2cfcee34dab6d9a544a8cd9fd.tar.bz2 samba-ba3b9fa36b0ffcb2cfcee34dab6d9a544a8cd9fd.zip |
s4:torture/rpc/remote_pac.c: make use of dcerpc_binding_handle stubs
metze
-rw-r--r-- | source4/torture/rpc/remote_pac.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source4/torture/rpc/remote_pac.c b/source4/torture/rpc/remote_pac.c index f51bdf518b..cfff5d1ead 100644 --- a/source4/torture/rpc/remote_pac.c +++ b/source4/torture/rpc/remote_pac.c @@ -63,6 +63,7 @@ static bool test_PACVerify(struct torture_context *tctx, struct auth_session_info *session_info; char *tmp_dir; + struct dcerpc_binding_handle *b = p->binding_handle; TALLOC_CTX *tmp_ctx = talloc_new(tctx); @@ -174,7 +175,7 @@ static bool test_PACVerify(struct torture_context *tctx, r.out.authoritative = &authoritative; r.out.return_authenticator = &return_authenticator; - status = dcerpc_netr_LogonSamLogon(p, tctx, &r); + status = dcerpc_netr_LogonSamLogon_r(b, tctx, &r); torture_assert_ntstatus_ok(tctx, status, "LogonSamLogon failed"); @@ -193,7 +194,7 @@ static bool test_PACVerify(struct torture_context *tctx, r.in.computer_name = cli_credentials_get_workstation(credentials); r.in.validation_level = NetlogonValidationGenericInfo2; - status = dcerpc_netr_LogonSamLogon(p, tctx, &r); + status = dcerpc_netr_LogonSamLogon_r(b, tctx, &r); torture_assert_ntstatus_equal(tctx, status, NT_STATUS_LOGON_FAILURE, "LogonSamLogon failed"); @@ -215,7 +216,7 @@ static bool test_PACVerify(struct torture_context *tctx, r.in.computer_name = cli_credentials_get_workstation(credentials); r.in.validation_level = NetlogonValidationGenericInfo2; - status = dcerpc_netr_LogonSamLogon(p, tctx, &r); + status = dcerpc_netr_LogonSamLogon_r(b, tctx, &r); torture_assert_ntstatus_equal(tctx, status, NT_STATUS_INVALID_PARAMETER, "LogonSamLogon failed"); @@ -263,7 +264,7 @@ static bool test_PACVerify(struct torture_context *tctx, r.in.computer_name = cli_credentials_get_workstation(credentials); r.in.validation_level = NetlogonValidationGenericInfo2; - status = dcerpc_netr_LogonSamLogon(p, tctx, &r); + status = dcerpc_netr_LogonSamLogon_r(b, tctx, &r); torture_assert_ntstatus_equal(tctx, status, NT_STATUS_LOGON_FAILURE, "LogonSamLogon failed"); @@ -310,7 +311,7 @@ static bool test_PACVerify(struct torture_context *tctx, r.in.computer_name = cli_credentials_get_workstation(credentials); r.in.validation_level = NetlogonValidationGenericInfo2; - status = dcerpc_netr_LogonSamLogon(p, tctx, &r); + status = dcerpc_netr_LogonSamLogon_r(b, tctx, &r); torture_assert_ntstatus_equal(tctx, status, NT_STATUS_INVALID_PARAMETER, "LogonSamLogon failed"); |