diff options
author | Sumit Bose <sbose@redhat.com> | 2010-09-02 18:11:47 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-02-16 11:44:06 +0100 |
commit | 92ea55e84e3137a331814cc45d7ac9d4e2100904 (patch) | |
tree | 7a7e5e579fb2aed4bfbc750bed7925c2e5d7bd14 /source4/torture/rpc | |
parent | cc3b67fa1feba8d8d177a2b3d8a13dadeb1b1990 (diff) | |
download | samba-92ea55e84e3137a331814cc45d7ac9d4e2100904.tar.gz samba-92ea55e84e3137a331814cc45d7ac9d4e2100904.tar.bz2 samba-92ea55e84e3137a331814cc45d7ac9d4e2100904.zip |
s4-smbtorture: Fix for RPC-LSA-FOREST-TRUST.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/forest_trust.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/torture/rpc/forest_trust.c b/source4/torture/rpc/forest_trust.c index 4981b681af..2abb489eb4 100644 --- a/source4/torture/rpc/forest_trust.c +++ b/source4/torture/rpc/forest_trust.c @@ -189,7 +189,7 @@ static bool test_create_trust_and_set_info(struct dcerpc_pipe *p, } if (ret != false) { - fti.in.handle = handle; + fti.in.handle = &trustdom_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; @@ -339,7 +339,10 @@ static bool delete_trusted_domain_by_sid(struct dcerpc_pipe *p, torture_comment(tctx, "\nDeleting trusted domain.\n"); - if (!test_get_policy_handle(tctx, p, LSA_POLICY_VIEW_LOCAL_INFORMATION, + /* Against a windows server it was sufficient to have + * LSA_POLICY_VIEW_LOCAL_INFORMATION although the documentations says + * otherwise. */ + if (!test_get_policy_handle(tctx, p, LSA_POLICY_TRUST_ADMIN, &handle)) { return false; } |