svn commit: samba r6451 - in branches/SAMBA_4_0/source/torture/rpc:
.
abartlet at samba.org
abartlet at samba.org
Mon Apr 25 03:02:32 GMT 2005
Author: abartlet
Date: 2005-04-25 03:02:30 +0000 (Mon, 25 Apr 2005)
New Revision: 6451
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6451
Log:
Ensure we correctly initialise the credentials structure in the schannel test.
Andrew Bartlett
Modified:
branches/SAMBA_4_0/source/torture/rpc/schannel.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/schannel.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/schannel.c 2005-04-25 02:30:12 UTC (rev 6450)
+++ branches/SAMBA_4_0/source/torture/rpc/schannel.c 2005-04-25 03:02:30 UTC (rev 6451)
@@ -132,8 +132,6 @@
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 @@
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);
More information about the samba-cvs
mailing list