summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-08-30 15:21:11 +0200
committerGünther Deschner <gd@samba.org>2011-02-16 11:44:05 +0100
commita357ac022278a2e4b4970ec747a576ef91ebb75f (patch)
tree5b614d24a2922164c13324d878aac22bbd43a0c2 /source4
parenta8ab5d582da062b433234764a10873b9941de42e (diff)
downloadsamba-a357ac022278a2e4b4970ec747a576ef91ebb75f.tar.gz
samba-a357ac022278a2e4b4970ec747a576ef91ebb75f.tar.bz2
samba-a357ac022278a2e4b4970ec747a576ef91ebb75f.zip
s4-smbtorture: Two fixes for forest trust test against samba.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/forest_trust.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/torture/rpc/forest_trust.c b/source4/torture/rpc/forest_trust.c
index 70d1516750..4981b681af 100644
--- a/source4/torture/rpc/forest_trust.c
+++ b/source4/torture/rpc/forest_trust.c
@@ -123,7 +123,10 @@ static bool test_create_trust_and_set_info(struct dcerpc_pipe *p,
r.in.policy_handle = handle;
r.in.info = &trustinfo;
r.in.auth_info = authinfo;
- r.in.access_mask = LSA_TRUSTED_SET_POSIX | LSA_TRUSTED_SET_AUTH;
+ /* LSA_TRUSTED_QUERY_DOMAIN_NAME is needed for for following
+ * QueryTrustedDomainInfo call, although it seems that Windows does not
+ * expect this */
+ r.in.access_mask = LSA_TRUSTED_SET_POSIX | LSA_TRUSTED_SET_AUTH | LSA_TRUSTED_QUERY_DOMAIN_NAME;
r.out.trustdom_handle = &trustdom_handle;
torture_assert_ntstatus_ok(tctx,
@@ -489,7 +492,8 @@ static bool test_validate_trust(struct torture_context *tctx,
return false;
}
- cli_credentials_set_username(credentials, trusted_dom_name,
+ char *dummy = talloc_asprintf(tctx, "%s$", trusted_dom_name);
+ cli_credentials_set_username(credentials, dummy,
CRED_SPECIFIED);
cli_credentials_set_domain(credentials, trusting_dom_name,
CRED_SPECIFIED);