The branch, master has been updated
       via  a3af166 s4-torture: add test for CLUSCTL_NODE_GET_ID in 
clusapi_NodeControl.
       via  321fe41 s3-rpcclient: add client for create enum ex.
       via  93572c9 s4-torture: add more ndr tests for property lists.
       via  d6a8e35 s4-torture: add torture test for clusapi_NodeControl.
       via  7cea0aa clusapi: add clusapi_NodeControlCode to IDL.
       via  d621099 s4-torture: add tests for GroupControl.
       via  e1373ea clusapi: add clusapi_GroupControlCode enum to IDL.
       via  2654ac3 s4-torture: also test ClusterControl with a large initial 
buffer size.
       via  0f125f8 clusapi: use winreg_Type in clusapi registry IDL.
       via  2a08aa0 s4-torture: add ndr testsuite for complex 
clusapi_PROPERTY_LIST structs.
       via  5e009e1 clusapi: use ClusterEnumType in clusapi_CreateEnumEx.
       via  d13535d s4-torture: add test for clusapi_CreateEnumEx().
       via  b378329 clusapi: add PROPERTY_LIST IDL.
       via  e68ce4b s4-torture: add test for GetResourceNetworkName.
       via  bc14440 s3-clusapi: add test for GetResourceDependencyExpression.
       via  1f51628 s4-torture: add more tests for clusapi_OpenResource().
      from  95eb6db s3-net: use talloc array in share allowedusers

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


- Log -----------------------------------------------------------------
commit a3af16613f7b870a6cf7e2cfd83960076018962b
Author: Günther Deschner <[email protected]>
Date:   Tue Jul 21 15:31:20 2015 +0200

    s4-torture: add test for CLUSCTL_NODE_GET_ID in clusapi_NodeControl.
    
    Guenther
    
    Signed-off-by: Günther Deschner <[email protected]>
    Reviewed-by: José A. Rivera <[email protected]>
    
    Autobuild-User(master): José A. Rivera <[email protected]>
    Autobuild-Date(master): Tue Aug  4 22:14:33 CEST 2015 on sn-devel-104

commit 321fe41e552d1f6063d436f3828b70d2bb626c96
Author: Günther Deschner <[email protected]>
Date:   Fri Jul 17 11:39:52 2015 +0200

    s3-rpcclient: add client for create enum ex.
    
    Guenther
    
    Signed-off-by: Günther Deschner <[email protected]>
    Reviewed-by: José A. Rivera <[email protected]>

commit 93572c9cba33d2cb84e131e0b6ac50e741b419e8
Author: Günther Deschner <[email protected]>
Date:   Fri Jul 17 00:14:09 2015 +0200

    s4-torture: add more ndr tests for property lists.
    
    This data is derived from clusapi_NodeControl.
    
    Guenther
    
    Signed-off-by: Günther Deschner <[email protected]>
    Reviewed-by: José A. Rivera <[email protected]>

commit d6a8e35a079f52c19101f0ffa76dd6ba60ee466b
Author: Günther Deschner <[email protected]>
Date:   Thu Jul 16 23:28:33 2015 +0200

    s4-torture: add torture test for clusapi_NodeControl.
    
    Guenther
    
    Signed-off-by: Günther Deschner <[email protected]>
    Reviewed-by: José A. Rivera <[email protected]>

commit 7cea0aa6638379c94d6371ab927967fff7cf0588
Author: Günther Deschner <[email protected]>
Date:   Thu Jul 16 23:22:18 2015 +0200

    clusapi: add clusapi_NodeControlCode to IDL.
    
    Guenther
    
    Signed-off-by: Günther Deschner <[email protected]>
    Reviewed-by: José A. Rivera <[email protected]>

commit d6210991ccc7c1279847388a416404d7f5472cc8
Author: Günther Deschner <[email protected]>
Date:   Thu Jul 16 17:40:37 2015 +0200

    s4-torture: add tests for GroupControl.
    
    Guenther
    
    Signed-off-by: Günther Deschner <[email protected]>
    Reviewed-by: José A. Rivera <[email protected]>

commit e1373ea464e278f94371cfaffd819ddc543e9f38
Author: Günther Deschner <[email protected]>
Date:   Thu Jul 16 17:03:59 2015 +0200

    clusapi: add clusapi_GroupControlCode enum to IDL.
    
    Guenther
    
    Signed-off-by: Günther Deschner <[email protected]>
    Reviewed-by: José A. Rivera <[email protected]>

commit 2654ac3d52bcc99a650b35f492af4ba2f857217d
Author: Günther Deschner <[email protected]>
Date:   Thu Jul 16 08:21:27 2015 +0200

    s4-torture: also test ClusterControl with a large initial buffer size.
    
    Guenther
    
    Signed-off-by: Günther Deschner <[email protected]>
    Reviewed-by: José A. Rivera <[email protected]>

commit 0f125f836035e7458e5937652c1ffab0ce948a73
Author: Günther Deschner <[email protected]>
Date:   Thu Jul 16 08:08:51 2015 +0200

    clusapi: use winreg_Type in clusapi registry IDL.
    
    Guenther
    
    Signed-off-by: Günther Deschner <[email protected]>
    Reviewed-by: José A. Rivera <[email protected]>

commit 2a08aa04568202bea7db9061592d20a7bf3efee7
Author: Günther Deschner <[email protected]>
Date:   Tue Jul 14 15:55:57 2015 +0200

    s4-torture: add ndr testsuite for complex clusapi_PROPERTY_LIST structs.
    
    Guenther
    
    Signed-off-by: Günther Deschner <[email protected]>
    Reviewed-by: José A. Rivera <[email protected]>

commit 5e009e13aaf9bcc05e357862b28aa6876f7c908c
Author: Günther Deschner <[email protected]>
Date:   Mon Jul 13 21:09:16 2015 +0200

    clusapi: use ClusterEnumType in clusapi_CreateEnumEx.
    
    Guenther
    
    Signed-off-by: Günther Deschner <[email protected]>
    Reviewed-by: José A. Rivera <[email protected]>

commit d13535d968695a4069772696132b51291df98c1c
Author: Günther Deschner <[email protected]>
Date:   Mon Jul 13 21:08:23 2015 +0200

    s4-torture: add test for clusapi_CreateEnumEx().
    
    Guenther
    
    Signed-off-by: Günther Deschner <[email protected]>
    Reviewed-by: José A. Rivera <[email protected]>

commit b37832976d7b1cbaa54dae7db7a060fe15b31cc7
Author: Günther Deschner <[email protected]>
Date:   Fri Jul 10 15:49:33 2015 +0200

    clusapi: add PROPERTY_LIST IDL.
    
    Note this is hand-marshalled in Windows, seen in ClusterControl reqplies 
for a
    CLUSCTL_CLUSTER_GET_RO_COMMON_PROPERTIES control.
    
    Guenther
    
    Signed-off-by: Günther Deschner <[email protected]>
    Reviewed-by: José A. Rivera <[email protected]>

commit e68ce4b10fd1459ff9d5c01f5da56590b7b909d4
Author: Günther Deschner <[email protected]>
Date:   Thu Jul 9 17:25:24 2015 +0200

    s4-torture: add test for GetResourceNetworkName.
    
    Guenther
    
    Signed-off-by: Günther Deschner <[email protected]>
    Reviewed-by: José A. Rivera <[email protected]>

commit bc144409bca4358ce4e59c661caf36cadeb6f807
Author: Günther Deschner <[email protected]>
Date:   Thu Jul 9 17:23:32 2015 +0200

    s3-clusapi: add test for GetResourceDependencyExpression.
    
    Guenther
    
    Signed-off-by: Günther Deschner <[email protected]>
    Reviewed-by: José A. Rivera <[email protected]>

commit 1f516287ef0cbd5efe8969899c5a90c36c80ceef
Author: Günther Deschner <[email protected]>
Date:   Wed Jul 1 16:58:06 2015 +0200

    s4-torture: add more tests for clusapi_OpenResource().
    
    Guenther
    
    Signed-off-by: Günther Deschner <[email protected]>
    Reviewed-by: José A. Rivera <[email protected]>

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

Summary of changes:
 librpc/idl/clusapi.idl          | 126 +++++++++---
 source3/rpcclient/cmd_clusapi.c |  58 ++++++
 source4/torture/ndr/clusapi.c   | 383 +++++++++++++++++++++++++++++++++++
 source4/torture/ndr/ndr.c       |   1 +
 source4/torture/rpc/clusapi.c   | 439 +++++++++++++++++++++++++++++++++++++++-
 source4/torture/wscript_build   |  21 +-
 6 files changed, 988 insertions(+), 40 deletions(-)
 create mode 100644 source4/torture/ndr/clusapi.c


Changeset truncated at 500 lines:

diff --git a/librpc/idl/clusapi.idl b/librpc/idl/clusapi.idl
index 5cb7610..42a9ecb 100644
--- a/librpc/idl/clusapi.idl
+++ b/librpc/idl/clusapi.idl
@@ -1,4 +1,4 @@
-import "security.idl", "winreg.idl";
+import "security.idl", "winreg.idl", "misc.idl";
 
 #include "idl_types.h"
 
@@ -546,7 +546,7 @@ import "security.idl", "winreg.idl";
        clusapi_SetValue(
                [ in ] HKEY_RPC hKey,
                [ in, string ] [charset(UTF16)] uint16 *lpValueName,
-               [ in ] uint32 dwType,
+               [ in ] winreg_Type dwType,
                [ in, size_is(cbData) ] uint8 *lpData,
                [ in ] uint32 cbData,
                [ out ] WERROR *rpc_status
@@ -569,7 +569,7 @@ import "security.idl", "winreg.idl";
        clusapi_QueryValue(
                [ in ] HKEY_RPC hKey,
                [ in, string ] [charset(UTF16)] uint16 *lpValueName,
-               [ out ] uint32 *lpValueType,
+               [ out ] winreg_Type *lpValueType,
                [ out, size_is(cbData) ] uint8 *lpData,
                [ in ] uint32 cbData,
                [ out ] uint32 *lpcbRequired,
@@ -594,7 +594,7 @@ import "security.idl", "winreg.idl";
                [ in ] HKEY_RPC hKey,
                [ in ] uint32 dwIndex,
                [ out, string ] [charset(UTF16)] uint16 **lpValueName,
-               [ out ] uint32 *lpType,
+               [ out ] winreg_Type *lpType,
                [ out, size_is(*lpcbData) ] uint8 *lpData,
                [ in, out ] uint32 *lpcbData,
                [ out ] uint32 *TotalSize,
@@ -1114,10 +1114,29 @@ import "security.idl", "winreg.idl";
        /*****************/
        /* Function 0x4D */
 
+       typedef [v1_enum] enum {
+               CLUSCTL_GROUP_UNKNOWN                           = 0x03000000,
+               CLUSCTL_GROUP_GET_CHARACTERISTICS               = 0x03000005,
+               CLUSCTL_GROUP_GET_FLAGS                         = 0x03000009,
+               CLUSCTL_GROUP_GET_NAME                          = 0x03000029,
+               CLUSCTL_GROUP_GET_ID                            = 0x03000039,
+               CLUSCTL_GROUP_ENUM_COMMON_PROPERTIES            = 0x03000051,
+               CLUSCTL_GROUP_GET_RO_COMMON_PROPERTIES          = 0x03000055,
+               CLUSCTL_GROUP_GET_COMMON_PROPERTIES             = 0x03000059,
+               CLUSCTL_GROUP_SET_COMMON_PROPERTIES             = 0x0340005E,
+               CLUSCTL_GROUP_VALIDATE_COMMON_PROPERTIES        = 0x03000061,
+               CLUSCTL_GROUP_GET_COMMON_PROPERTY_FMTS          = 0x03000065,
+               CLUSCTL_GROUP_ENUM_PRIVATE_PROPERTIES           = 0x03000079,
+               CLUSCTL_GROUP_GET_RO_PRIVATE_PROPERTIES         = 0x0300007D,
+               CLUSCTL_GROUP_GET_PRIVATE_PROPERTIES            = 0x03000081,
+               CLUSCTL_GROUP_SET_PRIVATE_PROPERTIES            = 0x03400086,
+               CLUSCTL_GROUP_VALIDATE_PRIVATE_PROPERTIES       = 0x03000089
+       } clusapi_GroupControlCode;
+
        WERROR
        clusapi_GroupControl(
                [ in ] HGROUP_RPC hGroup,
-               [ in ] uint32 dwControlCode,
+               [ in ] clusapi_GroupControlCode dwControlCode,
                [ in, unique, size_is(nInBufferSize) ] uint8 *lpInBuffer,
                [ in ] uint32 nInBufferSize,
                [ out, size_is(nOutBufferSize),
@@ -1149,10 +1168,29 @@ import "security.idl", "winreg.idl";
        /*****************/
        /* Function 0x4F */
 
+       typedef [v1_enum] enum {
+               CLUSCTL_NODE_UNKNOWN                            = 0x04000000,
+               CLUSCTL_NODE_GET_CHARACTERISTICS                = 0x04000005,
+               CLUSCTL_NODE_GET_FLAGS                          = 0x04000009,
+               CLUSCTL_NODE_GET_NAME                           = 0x04000029,
+               CLUSCTL_NODE_GET_ID                             = 0x04000039,
+               CLUSCTL_NODE_GET_CLUSTER_SERVICE_ACCOUNT_NAME   = 0x04000041,
+               CLUSCTL_NODE_ENUM_COMMON_PROPERTIES             = 0x04000051,
+               CLUSCTL_NODE_GET_RO_COMMON_PROPERTIES           = 0x04000055,
+               CLUSCTL_NODE_GET_COMMON_PROPERTIES              = 0x04000059,
+               CLUSCTL_NODE_SET_COMMON_PROPERTIES              = 0x0440005E,
+               CLUSCTL_NODE_VALIDATE_COMMON_PROPERTIES         = 0x04000061,
+               CLUSCTL_NODE_ENUM_PRIVATE_PROPERTIES            = 0x04000079,
+               CLUSCTL_NODE_GET_RO_PRIVATE_PROPERTIES          = 0x0400007D,
+               CLUSCTL_NODE_GET_PRIVATE_PROPERTIES             = 0x04000081,
+               CLUSCTL_NODE_SET_PRIVATE_PROPERTIES             = 0x04400086,
+               CLUSCTL_NODE_VALIDATE_PRIVATE_PROPERTIES        = 0x04000089
+       } clusapi_NodeControlCode;
+
        WERROR
        clusapi_NodeControl(
                [ in ] HNODE_RPC hNode,
-               [ in ] uint32 dwControlCode,
+               [ in ] clusapi_NodeControlCode dwControlCode,
                [ in, unique, size_is(nInBufferSize) ] uint8 *lpInBuffer,
                [ in ] uint32 nInBufferSize,
                [ out, size_is(nOutBufferSize),
@@ -1530,6 +1568,54 @@ import "security.idl", "winreg.idl";
                CLUSCTL_CLUSTER_IS_READY_FOR_UPGRADE            = 0x070000d5
        } clusapi_ClusterControlCode;
 
+       typedef [v1_enum] enum {
+               CLUSPROP_SYNTAX_ENDMARK = 0x00000000,
+               CLUSPROP_SYNTAX_NAME = 0x00040003,
+               CLUSPROP_SYNTAX_RESCLASS = 0x00020002,
+               CLUSPROP_SYNTAX_LIST_VALUE_SZ = 0x00010003,
+               CLUSPROP_SYNTAX_LIST_VALUE_EXPAND_SZ = 0x00010004,
+               CLUSPROP_SYNTAX_LIST_VALUE_DWORD = 0x00010002,
+               CLUSPROP_SYNTAX_LIST_VALUE_BINARY = 0x00010001,
+               CLUSPROP_SYNTAX_LIST_VALUE_MULTI_SZ = 0x00010005,
+               CLUSPROP_SYNTAX_LIST_VALUE_LONG = 0x00010007,
+               CLUSPROP_SYNTAX_LIST_VALUE_EXPANDED_SZ = 0x00010008,
+               CLUSPROP_SYNTAX_LIST_VALUE_SECURITY_DESCRIPTOR = 0x00010009,
+               CLUSPROP_SYNTAX_LIST_VALUE_LARGE_INTEGER = 0x0001000a,
+               CLUSPROP_SYNTAX_LIST_VALUE_ULARGE_INTEGER = 0x00010006,
+               CLUSPROP_SYNTAX_LIST_VALUE_WORD = 0x0001000b,
+               CLUSPROP_SYNTAX_LIST_VALUE_FILETIME = 0x0001000c,
+               CLUSPROP_SYNTAX_DISK_SIGNATURE = 0x00050002,
+               CLUSPROP_SYNTAX_SCSI_ADDRESS = 0x00060002,
+               CLUSPROP_SYNTAX_DISK_NUMBER = 0x00070002,
+               CLUSPROP_SYNTAX_PARTITION_INFO = 0x00080001,
+               CLUSPROP_SYNTAX_DISK_SERIALNUMBER = 0x000a0003,
+               CLUSPROP_SYNTAX_DISK_GUID = 0x000b0003,
+               CLUSPROP_SYNTAX_DISK_SIZE = 0x000c0006,
+               CLUSPROP_SYNTAX_PARTITION_INFO_EX = 0x000d0001
+       } CLUSTER_PROPERTY_SYNTAX;
+
+       typedef struct {
+               CLUSTER_PROPERTY_SYNTAX Syntax;
+               uint32 Size;
+               [subcontext(0),subcontext_size(Size)] [flag(NDR_REMAINING)] 
DATA_BLOB Buffer;
+               [flag(NDR_ALIGN4)] DATA_BLOB Padding;
+       } clusapi_propertyValues;
+
+       typedef struct {
+               [value(CLUSPROP_SYNTAX_NAME)] CLUSTER_PROPERTY_SYNTAX 
syntax_name;
+               [value(strlen_m_term(buffer)*2)] uint32 size;
+               nstring buffer;
+               [flag(NDR_ALIGN2)] DATA_BLOB padding;
+               clusapi_propertyValues PropertyValues;
+               [value(CLUSPROP_SYNTAX_ENDMARK)] CLUSTER_PROPERTY_SYNTAX 
end_mark;
+       } clusapi_propertyValue;
+
+       typedef [public] struct {
+               uint32 propertyCount;
+               clusapi_propertyValue propertyValues[propertyCount];
+               [value(CLUSPROP_SYNTAX_ENDMARK)] CLUSTER_PROPERTY_SYNTAX 
end_mark;
+       } clusapi_PROPERTY_LIST;
+
        WERROR
        clusapi_ClusterControl(
                [ in ] HCLUSTER_RPC hCluster,
@@ -1811,7 +1897,7 @@ import "security.idl", "winreg.idl";
        WERROR
        clusapi_CreateEnumEx(
                [in] HCLUSTER_RPC hCluster,
-               [in] uint32 dwType,
+               [in] ClusterEnumType dwType,
                [in] uint32 dwOptions,
                [out] ENUM_LIST **ReturnIdEnum,
                [out] ENUM_LIST **ReturnNameEnum,
@@ -2197,32 +2283,6 @@ import "security.idl", "winreg.idl";
        } CLUSTER_PROPERTY_FORMAT;
 
        typedef enum {
-               CLUSPROP_SYNTAX_ENDMARK = 0x00000000,
-               CLUSPROP_SYNTAX_NAME = 0x00040003,
-               CLUSPROP_SYNTAX_RESCLASS = 0x00020002,
-               CLUSPROP_SYNTAX_LIST_VALUE_SZ = 0x00010003,
-               CLUSPROP_SYNTAX_LIST_VALUE_EXPAND_SZ = 0x00010004,
-               CLUSPROP_SYNTAX_LIST_VALUE_DWORD = 0x00010002,
-               CLUSPROP_SYNTAX_LIST_VALUE_BINARY = 0x00010001,
-               CLUSPROP_SYNTAX_LIST_VALUE_MULTI_SZ = 0x00010005,
-               CLUSPROP_SYNTAX_LIST_VALUE_LONG = 0x00010007,
-               CLUSPROP_SYNTAX_LIST_VALUE_EXPANDED_SZ = 0x00010008,
-               CLUSPROP_SYNTAX_LIST_VALUE_SECURITY_DESCRIPTOR = 0x00010009,
-               CLUSPROP_SYNTAX_LIST_VALUE_LARGE_INTEGER = 0x0001000a,
-               CLUSPROP_SYNTAX_LIST_VALUE_ULARGE_INTEGER = 0x00010006,
-               CLUSPROP_SYNTAX_LIST_VALUE_WORD = 0x0001000b,
-               CLUSPROP_SYNTAX_LIST_VALUE_FILETIME = 0x0001000c,
-               CLUSPROP_SYNTAX_DISK_SIGNATURE = 0x00050002,
-               CLUSPROP_SYNTAX_SCSI_ADDRESS = 0x00060002,
-               CLUSPROP_SYNTAX_DISK_NUMBER = 0x00070002,
-               CLUSPROP_SYNTAX_PARTITION_INFO = 0x00080001,
-               CLUSPROP_SYNTAX_DISK_SERIALNUMBER = 0x000a0003,
-               CLUSPROP_SYNTAX_DISK_GUID = 0x000b0003,
-               CLUSPROP_SYNTAX_DISK_SIZE = 0x000c0006,
-               CLUSPROP_SYNTAX_PARTITION_INFO_EX = 0x000d0001
-       } CLUSTER_PROPERTY_SYNTAX;
-
-       typedef enum {
                CLUS_CHAR_UNKNOWN = 0x00000000,
                CLUS_CHAR_QUORUM = 0x00000001,
                CLUS_CHAR_DELETE_REQUIRES_ALL_NODES = 0x00000002,
diff --git a/source3/rpcclient/cmd_clusapi.c b/source3/rpcclient/cmd_clusapi.c
index b7451dc..ab1b1f4 100644
--- a/source3/rpcclient/cmd_clusapi.c
+++ b/source3/rpcclient/cmd_clusapi.c
@@ -203,6 +203,63 @@ static WERROR cmd_clusapi_create_enum(struct 
rpc_pipe_client *cli,
        return WERR_OK;
 }
 
+static WERROR cmd_clusapi_create_enumex(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       int argc,
+                                       const char **argv)
+{
+       struct dcerpc_binding_handle *b = cli->binding_handle;
+       NTSTATUS status;
+       WERROR error;
+       uint32_t dwType = 1;
+       struct ENUM_LIST *ReturnIdEnum;
+       struct ENUM_LIST *ReturnNameEnum;
+       WERROR rpc_status, ignore;
+       struct policy_handle Cluster;
+
+       status = dcerpc_clusapi_OpenCluster(b, mem_ctx,
+                                           &error,
+                                           &Cluster);
+       if (!NT_STATUS_IS_OK(status)) {
+               return ntstatus_to_werror(status);
+       }
+
+       if (!W_ERROR_IS_OK(error)) {
+               printf("error: %s\n", win_errstr(error));
+               return error;
+       }
+
+       if (argc >= 2) {
+               sscanf(argv[1],"%x",&dwType);
+       }
+
+       status = dcerpc_clusapi_CreateEnumEx(b, mem_ctx,
+                                            Cluster,
+                                            dwType,
+                                            0,
+                                            &ReturnIdEnum,
+                                            &ReturnNameEnum,
+                                            &rpc_status,
+                                            &error);
+       dcerpc_clusapi_CloseCluster(b, mem_ctx,
+                                   &Cluster,
+                                   &ignore);
+
+       if (!NT_STATUS_IS_OK(status)) {
+               return ntstatus_to_werror(status);
+       }
+
+       if (!W_ERROR_IS_OK(error)) {
+               printf("error: %s\n", win_errstr(error));
+               return error;
+       }
+
+       printf("rpc_status: %s\n", win_errstr(rpc_status));
+
+       return WERR_OK;
+}
+
+
 static WERROR cmd_clusapi_open_resource(struct rpc_pipe_client *cli,
                                        TALLOC_CTX *mem_ctx,
                                        int argc,
@@ -453,6 +510,7 @@ struct cmd_set clusapi_commands[] = {
        { "clusapi_get_cluster_version", RPC_RTYPE_WERROR, NULL, 
cmd_clusapi_get_cluster_version, &ndr_table_clusapi, NULL, "bla", "" },
        { "clusapi_get_quorum_resource", RPC_RTYPE_WERROR, NULL, 
cmd_clusapi_get_quorum_resource, &ndr_table_clusapi, NULL, "bla", "" },
        { "clusapi_create_enum", RPC_RTYPE_WERROR, NULL, 
cmd_clusapi_create_enum, &ndr_table_clusapi, NULL, "bla", "" },
+       { "clusapi_create_enumex", RPC_RTYPE_WERROR, NULL, 
cmd_clusapi_create_enumex, &ndr_table_clusapi, NULL, "bla", "" },
        { "clusapi_open_resource", RPC_RTYPE_WERROR, NULL, 
cmd_clusapi_open_resource, &ndr_table_clusapi, NULL, "bla", "" },
        { "clusapi_online_resource", RPC_RTYPE_WERROR, NULL, 
cmd_clusapi_online_resource, &ndr_table_clusapi, NULL, "bla", "" },
        { "clusapi_offline_resource", RPC_RTYPE_WERROR, NULL, 
cmd_clusapi_offline_resource, &ndr_table_clusapi, NULL, "bla", "" },
diff --git a/source4/torture/ndr/clusapi.c b/source4/torture/ndr/clusapi.c
new file mode 100644
index 0000000..f1156d0
--- /dev/null
+++ b/source4/torture/ndr/clusapi.c
@@ -0,0 +1,383 @@
+/*
+   Unix SMB/CIFS implementation.
+   test suite for clusapi ndr operations
+
+   Copyright (C) Guenther Deschner 2015
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include "includes.h"
+#include "torture/ndr/ndr.h"
+#include "librpc/gen_ndr/ndr_clusapi.h"
+#include "torture/ndr/proto.h"
+#include "param/param.h"
+#include "libcli/registry/util_reg.h"
+
+static const uint8_t clusapi_PROPERTY_LIST_data[] = {
+       0x06, 0x00, 0x00, 0x00, 0x03, 0x00, 0x04, 0x00, 0x14, 0x00, 0x00, 0x00,
+       0x46, 0x00, 0x69, 0x00, 0x78, 0x00, 0x51, 0x00, 0x75, 0x00, 0x6f, 0x00,
+       0x72, 0x00, 0x75, 0x00, 0x6d, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00,
+       0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+       0x03, 0x00, 0x04, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x50, 0x00, 0x72, 0x00,
+       0x65, 0x00, 0x76, 0x00, 0x65, 0x00, 0x6e, 0x00, 0x74, 0x00, 0x51, 0x00,
+       0x75, 0x00, 0x6f, 0x00, 0x72, 0x00, 0x75, 0x00, 0x6d, 0x00, 0x00, 0x00,
+       0x02, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+       0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x04, 0x00, 0x3e, 0x00, 0x00, 0x00,
+       0x49, 0x00, 0x67, 0x00, 0x6e, 0x00, 0x6f, 0x00, 0x72, 0x00, 0x65, 0x00,
+       0x50, 0x00, 0x65, 0x00, 0x72, 0x00, 0x73, 0x00, 0x69, 0x00, 0x73, 0x00,
+       0x74, 0x00, 0x65, 0x00, 0x6e, 0x00, 0x74, 0x00, 0x53, 0x00, 0x74, 0x00,
+       0x61, 0x00, 0x74, 0x00, 0x65, 0x00, 0x4f, 0x00, 0x6e, 0x00, 0x53, 0x00,
+       0x74, 0x00, 0x61, 0x00, 0x72, 0x00, 0x74, 0x00, 0x75, 0x00, 0x70, 0x00,
+       0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x04, 0x00,
+       0x24, 0x00, 0x00, 0x00, 0x53, 0x00, 0x68, 0x00, 0x61, 0x00, 0x72, 0x00,
+       0x65, 0x00, 0x64, 0x00, 0x56, 0x00, 0x6f, 0x00, 0x6c, 0x00, 0x75, 0x00,
+       0x6d, 0x00, 0x65, 0x00, 0x73, 0x00, 0x52, 0x00, 0x6f, 0x00, 0x6f, 0x00,
+       0x74, 0x00, 0x00, 0x00, 0x03, 0x00, 0x01, 0x00, 0x24, 0x00, 0x00, 0x00,
+       0x43, 0x00, 0x3a, 0x00, 0x5c, 0x00, 0x43, 0x00, 0x6c, 0x00, 0x75, 0x00,
+       0x73, 0x00, 0x74, 0x00, 0x65, 0x00, 0x72, 0x00, 0x53, 0x00, 0x74, 0x00,
+       0x6f, 0x00, 0x72, 0x00, 0x61, 0x00, 0x67, 0x00, 0x65, 0x00, 0x00, 0x00,
+       0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x04, 0x00, 0x2a, 0x00, 0x00, 0x00,
+       0x57, 0x00, 0x69, 0x00, 0x74, 0x00, 0x6e, 0x00, 0x65, 0x00, 0x73, 0x00,
+       0x73, 0x00, 0x44, 0x00, 0x79, 0x00, 0x6e, 0x00, 0x61, 0x00, 0x6d, 0x00,
+       0x69, 0x00, 0x63, 0x00, 0x57, 0x00, 0x65, 0x00, 0x69, 0x00, 0x67, 0x00,
+       0x68, 0x00, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00,
+       0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+       0x03, 0x00, 0x04, 0x00, 0x22, 0x00, 0x00, 0x00, 0x41, 0x00, 0x64, 0x00,
+       0x6d, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x41, 0x00, 0x63, 0x00, 0x63, 0x00,
+       0x65, 0x00, 0x73, 0x00, 0x73, 0x00, 0x50, 0x00, 0x6f, 0x00, 0x69, 0x00,
+       0x6e, 0x00, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00,
+       0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+       0x00, 0x00, 0x00, 0x00
+};
+
+static bool clusapi_PROPERTY_LIST_check(struct torture_context *tctx,
+                                       struct clusapi_PROPERTY_LIST *r)
+{
+       DATA_BLOB blob_dword_null = data_blob_talloc_zero(tctx, 4);
+       DATA_BLOB blob_dword_one = data_blob(NULL, 4);
+       const char *str;
+
+       SIVAL(blob_dword_one.data, 0, 1);
+
+       torture_assert_int_equal(tctx, r->propertyCount, 6, "propertyCount");
+
+       torture_assert_int_equal(tctx, r->propertyValues[0].syntax_name, 
CLUSPROP_SYNTAX_NAME, "syntax_name");
+       torture_assert_int_equal(tctx, r->propertyValues[0].size, 20, "size");
+       torture_assert_str_equal(tctx, r->propertyValues[0].buffer, 
"FixQuorum", "buffer");
+       torture_assert_int_equal(tctx, r->propertyValues[0].padding.length, 0, 
"padding.length");
+       torture_assert_int_equal(tctx, 
r->propertyValues[0].PropertyValues.Syntax, CLUSPROP_SYNTAX_LIST_VALUE_DWORD, 
"PropertyValues.Syntax");
+       torture_assert_int_equal(tctx, 
r->propertyValues[0].PropertyValues.Size, 4, "PropertyValues.Size");
+       torture_assert_int_equal(tctx, 
r->propertyValues[0].PropertyValues.Buffer.length, 4, 
"PropertyValues.Buffer.length");
+       torture_assert_data_blob_equal(tctx, 
r->propertyValues[0].PropertyValues.Buffer, blob_dword_null, "Buffer");
+       torture_assert_int_equal(tctx, 
r->propertyValues[0].PropertyValues.Padding.length, 0, 
"PropertyValues.Padding.length");
+       torture_assert_int_equal(tctx, r->propertyValues[0].end_mark, 
CLUSPROP_SYNTAX_ENDMARK, "end_mark");
+
+       torture_assert_int_equal(tctx, r->propertyValues[1].syntax_name, 
CLUSPROP_SYNTAX_NAME, "syntax_name");
+       torture_assert_int_equal(tctx, r->propertyValues[1].size, 28, "size");
+       torture_assert_str_equal(tctx, r->propertyValues[1].buffer, 
"PreventQuorum", "buffer");
+       torture_assert_int_equal(tctx, r->propertyValues[1].padding.length, 0, 
"padding.length");
+       torture_assert_int_equal(tctx, 
r->propertyValues[1].PropertyValues.Syntax, CLUSPROP_SYNTAX_LIST_VALUE_DWORD, 
"PropertyValues.Syntax");
+       torture_assert_int_equal(tctx, 
r->propertyValues[1].PropertyValues.Size, 4, "PropertyValues.Size");
+       torture_assert_int_equal(tctx, 
r->propertyValues[1].PropertyValues.Buffer.length, 4, 
"PropertyValues.Buffer.length");
+       torture_assert_data_blob_equal(tctx, 
r->propertyValues[1].PropertyValues.Buffer, blob_dword_null, "Buffer");
+       torture_assert_int_equal(tctx, 
r->propertyValues[1].PropertyValues.Padding.length, 0, 
"PropertyValues.Padding.length");
+       torture_assert_int_equal(tctx, r->propertyValues[1].end_mark, 
CLUSPROP_SYNTAX_ENDMARK, "end_mark");
+
+       torture_assert_int_equal(tctx, r->propertyValues[2].syntax_name, 
CLUSPROP_SYNTAX_NAME, "syntax_name");
+       torture_assert_int_equal(tctx, r->propertyValues[2].size, 62, "size");
+       torture_assert_str_equal(tctx, r->propertyValues[2].buffer, 
"IgnorePersistentStateOnStartup", "buffer");
+       torture_assert_int_equal(tctx, r->propertyValues[2].padding.length, 0, 
"padding.length");
+       torture_assert_int_equal(tctx, 
r->propertyValues[2].PropertyValues.Syntax, CLUSPROP_SYNTAX_LIST_VALUE_DWORD, 
"PropertyValues.Syntax");
+       torture_assert_int_equal(tctx, 
r->propertyValues[2].PropertyValues.Size, 4, "PropertyValues.Size");
+       torture_assert_int_equal(tctx, 
r->propertyValues[2].PropertyValues.Buffer.length, 4, 
"PropertyValues.Buffer.length");
+       torture_assert_data_blob_equal(tctx, 
r->propertyValues[2].PropertyValues.Buffer, blob_dword_null, "Buffer");
+       torture_assert_int_equal(tctx, 
r->propertyValues[2].PropertyValues.Padding.length, 0, 
"PropertyValues.Padding.length");
+       torture_assert_int_equal(tctx, r->propertyValues[2].end_mark, 
CLUSPROP_SYNTAX_ENDMARK, "end_mark");
+
+       torture_assert_int_equal(tctx, r->propertyValues[3].syntax_name, 
CLUSPROP_SYNTAX_NAME, "syntax_name");
+       torture_assert_int_equal(tctx, r->propertyValues[3].size, 36, "size");
+       torture_assert_str_equal(tctx, r->propertyValues[3].buffer, 
"SharedVolumesRoot", "buffer");
+       torture_assert_int_equal(tctx, r->propertyValues[3].padding.length, 0, 
"padding.length");
+       torture_assert_int_equal(tctx, 
r->propertyValues[3].PropertyValues.Syntax, CLUSPROP_SYNTAX_LIST_VALUE_SZ, 
"PropertyValues.Syntax");
+       torture_assert_int_equal(tctx, 
r->propertyValues[3].PropertyValues.Size, 36, "PropertyValues.Size");
+       torture_assert_int_equal(tctx, 
r->propertyValues[3].PropertyValues.Buffer.length, 36, 
"PropertyValues.Buffer.length");
+       pull_reg_sz(tctx, &r->propertyValues[3].PropertyValues.Buffer, &str);
+       torture_assert_str_equal(tctx, str, "C:\\ClusterStorage", 
"PropertyValues.Buffer");
+       torture_assert_int_equal(tctx, 
r->propertyValues[3].PropertyValues.Padding.length, 0, 
"PropertyValues.Padding.length");
+       torture_assert_int_equal(tctx, r->propertyValues[3].end_mark, 
CLUSPROP_SYNTAX_ENDMARK, "end_mark");
+
+       torture_assert_int_equal(tctx, r->propertyValues[4].syntax_name, 
CLUSPROP_SYNTAX_NAME, "syntax_name");
+       torture_assert_int_equal(tctx, r->propertyValues[4].size, 42, "size");
+       torture_assert_str_equal(tctx, r->propertyValues[4].buffer, 
"WitnessDynamicWeight", "buffer");
+       torture_assert_int_equal(tctx, r->propertyValues[4].padding.length, 0, 
"padding.length");
+       torture_assert_int_equal(tctx, 
r->propertyValues[4].PropertyValues.Syntax, CLUSPROP_SYNTAX_LIST_VALUE_DWORD, 
"PropertyValues.Syntax");
+       torture_assert_int_equal(tctx, 
r->propertyValues[4].PropertyValues.Size, 4, "PropertyValues.Size");
+       torture_assert_int_equal(tctx, 
r->propertyValues[4].PropertyValues.Buffer.length, 4, 
"PropertyValues.Buffer.length");
+       torture_assert_data_blob_equal(tctx, 
r->propertyValues[4].PropertyValues.Buffer, blob_dword_one, "Buffer");
+       torture_assert_int_equal(tctx, 
r->propertyValues[4].PropertyValues.Padding.length, 0, 
"PropertyValues.Padding.length");
+       torture_assert_int_equal(tctx, r->propertyValues[4].end_mark, 
CLUSPROP_SYNTAX_ENDMARK, "end_mark");
+
+       torture_assert_int_equal(tctx, r->propertyValues[5].syntax_name, 
CLUSPROP_SYNTAX_NAME, "syntax_name");
+       torture_assert_int_equal(tctx, r->propertyValues[5].size, 34, "size");
+       torture_assert_str_equal(tctx, r->propertyValues[5].buffer, 
"AdminAccessPoint", "buffer");
+       torture_assert_int_equal(tctx, r->propertyValues[5].padding.length, 0, 
"padding.length");
+       torture_assert_int_equal(tctx, 
r->propertyValues[5].PropertyValues.Syntax, CLUSPROP_SYNTAX_LIST_VALUE_DWORD, 
"PropertyValues.Syntax");
+       torture_assert_int_equal(tctx, 
r->propertyValues[5].PropertyValues.Size, 4, "PropertyValues.Size");
+       torture_assert_int_equal(tctx, 
r->propertyValues[5].PropertyValues.Buffer.length, 4, 
"PropertyValues.Buffer.length");
+       torture_assert_data_blob_equal(tctx, 
r->propertyValues[5].PropertyValues.Buffer, blob_dword_one, "Buffer");
+       torture_assert_int_equal(tctx, 
r->propertyValues[5].PropertyValues.Padding.length, 0, 
"PropertyValues.Padding.length");
+       torture_assert_int_equal(tctx, r->propertyValues[5].end_mark, 
CLUSPROP_SYNTAX_ENDMARK, "end_mark");
+
+       return true;
+}
+
+static const uint8_t clusapi_PROPERTY_LIST_data2[] = {
+       0x0c, 0x00, 0x00, 0x00, 0x03, 0x00, 0x04, 0x00, 0x12, 0x00, 0x00, 0x00,
+       0x4e, 0x00, 0x6f, 0x00, 0x64, 0x00, 0x65, 0x00, 0x4e, 0x00, 0x61, 0x00,
+       0x6d, 0x00, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x01, 0x00,
+       0x0c, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x6f, 0x00, 0x64, 0x00, 0x65, 0x00,
+       0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x04, 0x00,
+       0x26, 0x00, 0x00, 0x00, 0x4e, 0x00, 0x6f, 0x00, 0x64, 0x00, 0x65, 0x00,
+       0x48, 0x00, 0x69, 0x00, 0x67, 0x00, 0x68, 0x00, 0x65, 0x00, 0x73, 0x00,
+       0x74, 0x00, 0x56, 0x00, 0x65, 0x00, 0x72, 0x00, 0x73, 0x00, 0x69, 0x00,
+       0x6f, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00,
+       0x04, 0x00, 0x00, 0x00, 0x80, 0x25, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
+       0x03, 0x00, 0x04, 0x00, 0x24, 0x00, 0x00, 0x00, 0x4e, 0x00, 0x6f, 0x00,
+       0x64, 0x00, 0x65, 0x00, 0x4c, 0x00, 0x6f, 0x00, 0x77, 0x00, 0x65, 0x00,
+       0x73, 0x00, 0x74, 0x00, 0x56, 0x00, 0x65, 0x00, 0x72, 0x00, 0x73, 0x00,
+       0x69, 0x00, 0x6f, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00,
+       0x04, 0x00, 0x00, 0x00, 0x80, 0x25, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
+       0x03, 0x00, 0x04, 0x00, 0x1a, 0x00, 0x00, 0x00, 0x4d, 0x00, 0x61, 0x00,
+       0x6a, 0x00, 0x6f, 0x00, 0x72, 0x00, 0x56, 0x00, 0x65, 0x00, 0x72, 0x00,
+       0x73, 0x00, 0x69, 0x00, 0x6f, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x00, 0x00,
+       0x02, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00,
+       0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x04, 0x00, 0x1a, 0x00, 0x00, 0x00,
+       0x4d, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x6f, 0x00, 0x72, 0x00, 0x56, 0x00,
+       0x65, 0x00, 0x72, 0x00, 0x73, 0x00, 0x69, 0x00, 0x6f, 0x00, 0x6e, 0x00,
+       0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
+       0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x04, 0x00,
+       0x18, 0x00, 0x00, 0x00, 0x42, 0x00, 0x75, 0x00, 0x69, 0x00, 0x6c, 0x00,
+       0x64, 0x00, 0x4e, 0x00, 0x75, 0x00, 0x6d, 0x00, 0x62, 0x00, 0x65, 0x00,
+       0x72, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
+       0x80, 0x25, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x04, 0x00,
+       0x16, 0x00, 0x00, 0x00, 0x43, 0x00, 0x53, 0x00, 0x44, 0x00, 0x56, 0x00,
+       0x65, 0x00, 0x72, 0x00, 0x73, 0x00, 0x69, 0x00, 0x6f, 0x00, 0x6e, 0x00,
+       0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x00, 0x00,
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x04, 0x00,
+       0x1e, 0x00, 0x00, 0x00, 0x4e, 0x00, 0x6f, 0x00, 0x64, 0x00, 0x65, 0x00,
+       0x49, 0x00, 0x6e, 0x00, 0x73, 0x00, 0x74, 0x00, 0x61, 0x00, 0x6e, 0x00,
+       0x63, 0x00, 0x65, 0x00, 0x49, 0x00, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00,
+       0x03, 0x00, 0x01, 0x00, 0x4a, 0x00, 0x00, 0x00, 0x30, 0x00, 0x30, 0x00,
+       0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00,
+       0x2d, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x2d, 0x00,
+       0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x2d, 0x00, 0x30, 0x00,
+       0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x2d, 0x00, 0x30, 0x00, 0x30, 0x00,
+       0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00,
+       0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00,
+       0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x04, 0x00, 0x20, 0x00, 0x00, 0x00,
+       0x4e, 0x00, 0x6f, 0x00, 0x64, 0x00, 0x65, 0x00, 0x44, 0x00, 0x72, 0x00,
+       0x61, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x53, 0x00, 0x74, 0x00, 0x61, 0x00,
+       0x74, 0x00, 0x75, 0x00, 0x73, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00,
+       0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+       0x03, 0x00, 0x04, 0x00, 0x20, 0x00, 0x00, 0x00, 0x4e, 0x00, 0x6f, 0x00,
+       0x64, 0x00, 0x65, 0x00, 0x44, 0x00, 0x72, 0x00, 0x61, 0x00, 0x69, 0x00,
+       0x6e, 0x00, 0x54, 0x00, 0x61, 0x00, 0x72, 0x00, 0x67, 0x00, 0x65, 0x00,
+       0x74, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
+       0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x04, 0x00,
+       0x1c, 0x00, 0x00, 0x00, 0x44, 0x00, 0x79, 0x00, 0x6e, 0x00, 0x61, 0x00,
+       0x6d, 0x00, 0x69, 0x00, 0x63, 0x00, 0x57, 0x00, 0x65, 0x00, 0x69, 0x00,
+       0x67, 0x00, 0x68, 0x00, 0x74, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00,
+       0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+       0x03, 0x00, 0x04, 0x00, 0x26, 0x00, 0x00, 0x00, 0x4e, 0x00, 0x65, 0x00,
+       0x65, 0x00, 0x64, 0x00, 0x73, 0x00, 0x50, 0x00, 0x72, 0x00, 0x65, 0x00,
+       0x76, 0x00, 0x65, 0x00, 0x6e, 0x00, 0x74, 0x00, 0x51, 0x00, 0x75, 0x00,
+       0x6f, 0x00, 0x72, 0x00, 0x75, 0x00, 0x6d, 0x00, 0x00, 0x00, 0x00, 0x00,
+       0x02, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
+};
+
+static bool clusapi_PROPERTY_LIST_check2(struct torture_context *tctx,
+                                        struct clusapi_PROPERTY_LIST *r)
+{
+       DATA_BLOB blob_dword_null = data_blob_talloc_zero(tctx, 4);
+       DATA_BLOB blob_dword_one = data_blob(NULL, 4);
+       DATA_BLOB blob_dword = data_blob(NULL, 4);
+       const char *str;
+
+       SIVAL(blob_dword_one.data, 0, 1);
+
+       torture_assert_int_equal(tctx, r->propertyCount, 12, "propertyCount");


-- 
Samba Shared Repository

Reply via email to