s4-smbtorture: fix lsa forest trust test.
authorGünther Deschner <gd@samba.org>
Thu, 7 Apr 2011 10:05:58 +0000 (12:05 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 7 Apr 2011 12:58:13 +0000 (14:58 +0200)
lsa_lsaRSetForestTrustInformation takes a policy handle obtained from
lsaopenpolicy/lsaopenpolicy2 and not a trusted domain handle
(MS-LSAD 3.1.4.7.16 LsarSetForestTrustInformation (Opnum 74)).

Sumit, please check.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Apr  7 14:52:52 CEST 2011 on sn-devel-104
(cherry picked from commit ead6faab2766b786e124f2086093ef3fa05d115b)

source4/torture/rpc/forest_trust.c

index 3ef3f1d8198f26697ab41189a8a7a0d5099ec20f..5b659309369a94d29ea3783820682c90f114b990 100644 (file)
@@ -189,7 +189,7 @@ static bool test_create_trust_and_set_info(struct dcerpc_pipe *p,
        }
 
        if (ret != false) {
-               fti.in.handle = &trustdom_handle;
+               fti.in.handle = handle;
                fti.in.trusted_domain_name = talloc_zero(tctx, struct lsa_StringLarge);
                fti.in.trusted_domain_name->string = trust_name_dns;
                fti.in.highest_record_type = 2;