summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/schannel.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-09-28 02:58:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:05 -0500
commitf54b3650d6e561213abdeffb56ee45b84ef4d068 (patch)
treece8cae76ff66bdd61be6b880e170dfe6075880af /source4/torture/rpc/schannel.c
parent9d9e7d8563537bf61f75c093ae7b50e7749aaba9 (diff)
downloadsamba-f54b3650d6e561213abdeffb56ee45b84ef4d068.tar.gz
samba-f54b3650d6e561213abdeffb56ee45b84ef4d068.tar.bz2
samba-f54b3650d6e561213abdeffb56ee45b84ef4d068.zip
r10564: Make the RPC-SCHANNEL test use the libnet_join code via torture_join_domain
Handle error cases in torture_create_testuser, where we can't connect to the target server (we were segfaulting due to an untested error path). Andrew Bartlett (This used to be commit 7afe14becbcfa8742740431884f9de92b72ed3e1)
Diffstat (limited to 'source4/torture/rpc/schannel.c')
-rw-r--r--source4/torture/rpc/schannel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/rpc/schannel.c b/source4/torture/rpc/schannel.c
index c10405354e..90f5fb0361 100644
--- a/source4/torture/rpc/schannel.c
+++ b/source4/torture/rpc/schannel.c
@@ -159,8 +159,8 @@ 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);
- join_ctx = torture_create_testuser(test_machine_account, lp_workgroup(),
- acct_flags, &machine_password);
+ join_ctx = torture_join_domain(TEST_MACHINE_NAME,
+ acct_flags, &machine_password);
if (!join_ctx) {
printf("Failed to join domain with acct_flags=0x%x\n", acct_flags);
talloc_free(test_ctx);