The branch, master has been updated
       via  3b0c87c... s4-smbtorture: run all testcases with bigendian push as 
well in RPC-BIND.
       via  1c7d089... s4-smbtorture: rearrange testlist in RPC-BIND.
       via  7755e19... s4-smbtorture: make sure to wipe out dcerpc auth flags 
before RPC-BIND starts.
      from  65116ad... s3-dcerpc: Fix ability to receive Big Endian PDUs

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 3b0c87cf319b562aeb1f5e12135905d6d57e926f
Author: Günther Deschner <[email protected]>
Date:   Fri Jul 16 22:46:58 2010 +0200

    s4-smbtorture: run all testcases with bigendian push as well in RPC-BIND.
    
    Guenther

commit 1c7d08990469cc41e07e11e3d3d714021753f7e2
Author: Günther Deschner <[email protected]>
Date:   Fri Jul 16 22:42:11 2010 +0200

    s4-smbtorture: rearrange testlist in RPC-BIND.
    
    Guenther

commit 7755e196a15ada80505c3ffd77b41c20e60b69ec
Author: Günther Deschner <[email protected]>
Date:   Fri Jul 16 22:41:32 2010 +0200

    s4-smbtorture: make sure to wipe out dcerpc auth flags before RPC-BIND 
starts.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source4/torture/rpc/bind.c |   32 +++++++++++++++++++++++++++-----
 1 files changed, 27 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/torture/rpc/bind.c b/source4/torture/rpc/bind.c
index b36e54c..f647059 100644
--- a/source4/torture/rpc/bind.c
+++ b/source4/torture/rpc/bind.c
@@ -52,6 +52,7 @@ static bool test_bind(struct torture_context *tctx,
                torture_rpc_binding(tctx, &binding),
                "failed to parse binding string");
 
+       binding->flags &= ~DCERPC_AUTH_OPTIONS;
        binding->flags |= *flags;
 
        torture_assert_ntstatus_ok(tctx,
@@ -86,11 +87,32 @@ static void test_bind_op(struct torture_suite *suite,
 struct torture_suite *torture_rpc_bind(TALLOC_CTX *mem_ctx)
 {
        struct torture_suite *suite = torture_suite_create(mem_ctx, "BIND");
-
-       test_bind_op(suite, "ntlm,sign", DCERPC_AUTH_NTLM | DCERPC_SIGN);
-       test_bind_op(suite, "ntlm,sign,seal", DCERPC_AUTH_NTLM | DCERPC_SIGN | 
DCERPC_SEAL);
-       test_bind_op(suite, "spnego,sign", DCERPC_AUTH_SPNEGO | DCERPC_SIGN);
-       test_bind_op(suite, "spnego,sign,seal", DCERPC_AUTH_SPNEGO | 
DCERPC_SIGN | DCERPC_SEAL);
+       struct {
+               const char *test_name;
+               uint32_t flags;
+       } tests[] = {
+               {
+                       .test_name      = "ntlm,sign",
+                       .flags          = DCERPC_AUTH_NTLM | DCERPC_SIGN
+               },{
+                       .test_name      = "ntlm,sign,seal",
+                       .flags          = DCERPC_AUTH_NTLM | DCERPC_SIGN | 
DCERPC_SEAL
+               },{
+                       .test_name      = "spnego,sign",
+                       .flags          = DCERPC_AUTH_SPNEGO | DCERPC_SIGN
+               },{
+                       .test_name      = "spnego,sign,seal",
+                       .flags          = DCERPC_AUTH_SPNEGO | DCERPC_SIGN | 
DCERPC_SEAL
+               }
+       };
+       int i;
+
+       for (i=0; i < ARRAY_SIZE(tests); i++) {
+               test_bind_op(suite, tests[i].test_name, tests[i].flags);
+       }
+       for (i=0; i < ARRAY_SIZE(tests); i++) {
+               test_bind_op(suite, talloc_asprintf(suite, "bigendian,%s", 
tests[i].test_name), tests[i].flags | DCERPC_PUSH_BIGENDIAN);
+       }
 
        return suite;
 }


-- 
Samba Shared Repository

Reply via email to