r21660: Add another test
authorJelmer Vernooij <jelmer@samba.org>
Fri, 2 Mar 2007 18:01:43 +0000 (18:01 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:49:06 +0000 (14:49 -0500)
source/librpc/idl/samr.idl
source/torture/ndr/samr.c

index 5c73bfa76ccf364d995fec29435db959bb6a9405..a1d551ef783b336d1da01dd1e6877f77821ce34f 100644 (file)
@@ -118,7 +118,7 @@ import "misc.idl", "lsa.idl", "security.idl";
 
        /************************/
        /* Function    0x07     */
-       NTSTATUS samr_OpenDomain(
+       [public] NTSTATUS samr_OpenDomain(
                [in,ref]      policy_handle *connect_handle,
                [in]          uint32 access_mask,
                [in,ref]      dom_sid2 *sid,
@@ -337,7 +337,7 @@ import "misc.idl", "lsa.idl", "security.idl";
        /************************/
        /* Function    0x11     */
 
-       NTSTATUS samr_LookupNames(
+       [public] NTSTATUS samr_LookupNames(
                [in,ref]      policy_handle *domain_handle,
                [in,range(0,1000)] uint32 num_names,
                [in,size_is(1000),length_is(num_names)] lsa_String names[],
@@ -550,7 +550,7 @@ import "misc.idl", "lsa.idl", "security.idl";
 
        /************************/
        /* Function    0x22     */
-       NTSTATUS samr_OpenUser(
+       [public] NTSTATUS samr_OpenUser(
                [in,ref]      policy_handle *domain_handle,
                [in]          uint32 access_mask,
                [in]          uint32 rid,
@@ -1207,7 +1207,7 @@ import "misc.idl", "lsa.idl", "security.idl";
                [case(1)]  samr_ConnectInfo1 info1;
        } samr_ConnectInfo;
 
-       NTSTATUS samr_Connect5(
+       [public] NTSTATUS samr_Connect5(
                [in,string,charset(UTF16)] uint16 *system_name,
                [in]       uint32             access_mask,
                [in,out]   uint32             level,
index 981718bcde6994c5ecfd5114bdd6284b4a8f03e7..9781014cf1abdc72a0bf1e9d3e38b0e4f5572352 100644 (file)
@@ -70,6 +70,17 @@ static const uint8_t samr_lookupnamesindomain_out_data[] = {
   0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
 };
 
+static const uint8_t samr_openuser_in_data[] = {
+  0x01, 0x00, 0x00, 0x00, 0x60, 0xf0, 0x16, 0x2b, 0x52, 0x19, 0x4a, 0x47,
+  0x9e, 0x88, 0x8b, 0xe8, 0x93, 0xe6, 0xbf, 0x36, 0xb0, 0x00, 0x00, 0x00,
+  0xeb, 0x03, 0x00, 0x00
+};
+
+static const uint8_t samr_openuser_out_data[] = {
+  0x02, 0x00, 0x00, 0x00, 0xd8, 0x6e, 0xec, 0x8c, 0xe1, 0x1f, 0x2d, 0x41,
+  0x99, 0x53, 0x13, 0xe9, 0xa4, 0x51, 0xe8, 0x1d, 0x00, 0x00, 0x00, 0x00
+};
+
 struct torture_suite *ndr_samr_suite(TALLOC_CTX *ctx)
 {
        struct torture_suite *suite = torture_suite_create(ctx, "samr");
@@ -83,6 +94,9 @@ struct torture_suite *ndr_samr_suite(TALLOC_CTX *ctx)
        torture_suite_add_ndr_pull_fn_test(suite, samr_OpenDomain, samr_opendomain_in_data, NDR_IN, NULL);
        torture_suite_add_ndr_pull_fn_test(suite, samr_OpenDomain, samr_opendomain_out_data, NDR_OUT, NULL);
 
+       torture_suite_add_ndr_pull_fn_test(suite, samr_OpenUser, samr_openuser_in_data, NDR_IN, NULL);
+       torture_suite_add_ndr_pull_fn_test(suite, samr_OpenUser, samr_openuser_out_data, NDR_OUT, NULL);
+
        return suite;
 }