diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-04-25 03:02:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:11:37 -0500 |
commit | 4411479b93ae36142a55d875a9edde1d6cf9631c (patch) | |
tree | 79116dce62829bf4cc29b140887f3d828f284f11 | |
parent | 499f00b4d947b04ab9616a17d9e638caaec9e6f5 (diff) | |
download | samba-4411479b93ae36142a55d875a9edde1d6cf9631c.tar.gz samba-4411479b93ae36142a55d875a9edde1d6cf9631c.tar.bz2 samba-4411479b93ae36142a55d875a9edde1d6cf9631c.zip |
r6451: Ensure we correctly initialise the credentials structure in the schannel test.
Andrew Bartlett
(This used to be commit 7e554e31d93c6f0c3968dfcb774b3135573d97b1)
-rw-r--r-- | source4/torture/rpc/schannel.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/torture/rpc/schannel.c b/source4/torture/rpc/schannel.c index 7bc184f42e..de0e1caa64 100644 --- a/source4/torture/rpc/schannel.c +++ b/source4/torture/rpc/schannel.c @@ -132,8 +132,6 @@ static BOOL test_schannel(TALLOC_CTX *mem_ctx, TALLOC_CTX *test_ctx = talloc_named(mem_ctx, 0, "test_schannel context"); char *test_machine_account = talloc_asprintf(NULL, "%s$", TEST_MACHINE_NAME); - credentials = cli_credentials_init(mem_ctx); - join_ctx = torture_create_testuser(test_machine_account, lp_workgroup(), acct_flags, &machine_password); if (!join_ctx) { @@ -151,6 +149,9 @@ static BOOL test_schannel(TALLOC_CTX *mem_ctx, b->flags &= ~DCERPC_AUTH_OPTIONS; b->flags |= dcerpc_flags; + credentials = cli_credentials_init(mem_ctx); + cli_credentials_set_conf(credentials); + cli_credentials_set_domain(credentials, lp_workgroup(), CRED_SPECIFIED); cli_credentials_set_workstation(credentials, TEST_MACHINE_NAME, CRED_SPECIFIED); cli_credentials_set_username(credentials, test_machine_account, CRED_SPECIFIED); |