lsa.idl: fix idl for lsa_ForestTrustRecordType
authorStefan Metzmacher <metze@samba.org>
Fri, 30 Jan 2015 08:01:58 +0000 (08:01 +0000)
committerGünther Deschner <gd@samba.org>
Thu, 12 Mar 2015 16:13:44 +0000 (17:13 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
librpc/idl/lsa.idl
source4/torture/rpc/lsa.c

index 251b4e2f476cb582369cb5e30308fc7ba0ddeca5..e86196e878c2c0f0231426d102fcd1bd68926222 100644 (file)
@@ -1273,7 +1273,7 @@ import "misc.idl", "security.idl";
                [default] lsa_ForestTrustBinaryData data;
        } lsa_ForestTrustData;
 
-       typedef [v1_enum] enum {
+       typedef enum {
                LSA_FOREST_TRUST_TOP_LEVEL_NAME = 0,
                LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX = 1,
                LSA_FOREST_TRUST_DOMAIN_INFO = 2,
@@ -1295,7 +1295,7 @@ import "misc.idl", "security.idl";
        NTSTATUS lsa_lsaRQueryForestTrustInformation(
                [in] policy_handle *handle,
                [in,ref] lsa_String *trusted_domain_name,
-               [in] uint16 unknown, /* level ? */
+               [in] lsa_ForestTrustRecordType highest_record_type,
                [out,ref] lsa_ForestTrustInformation **forest_trust_info
                );
 
@@ -1344,7 +1344,7 @@ import "misc.idl", "security.idl";
        [public] NTSTATUS lsa_lsaRSetForestTrustInformation(
                [in]      policy_handle *handle,
                [in,ref]  lsa_StringLarge *trusted_domain_name,
-               [in]      uint16 highest_record_type,
+               [in]      lsa_ForestTrustRecordType highest_record_type,
                [in,ref]  lsa_ForestTrustInformation *forest_trust_info,
                [in]      uint8 check_only,
                [out,ref] lsa_ForestTrustCollisionInfo **collision_info
index e5032a8aa4fa8c6ee0d0174d5cae30653ad16139..c3a35588d4f41f5d2c645db1e562e42ed8ff4d75 100644 (file)
@@ -2077,7 +2077,7 @@ static bool test_QueryForestTrustInformation(struct dcerpc_binding_handle *b,
 
        r.in.handle = handle;
        r.in.trusted_domain_name = &string;
-       r.in.unknown = 0;
+       r.in.highest_record_type = LSA_FOREST_TRUST_TOP_LEVEL_NAME;
        r.out.forest_trust_info = &info_ptr;
 
        torture_assert_ntstatus_ok(tctx, dcerpc_lsa_lsaRQueryForestTrustInformation_r(b, tctx, &r),