From 099c3d532736d5836d0d5d3236cd1e502897076c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 3 Oct 2005 23:46:21 +0000 Subject: r10697: Change the torture join code to return a credentials structure, as that is what most of the callers want anyway. Remove and re-add the account for the torture case, rather than just modify it. Test with a user account (needs work to change the password). Andrew Bartlett (This used to be commit 38bebef02454164cbe882347d80e03abee656205) --- source4/torture/nbt/dgram.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/torture/nbt') diff --git a/source4/torture/nbt/dgram.c b/source4/torture/nbt/dgram.c index b3249524ca..ded2b49ea8 100644 --- a/source4/torture/nbt/dgram.c +++ b/source4/torture/nbt/dgram.c @@ -214,11 +214,11 @@ static BOOL nbt_test_ntlogon(TALLOC_CTX *mem_ctx, struct timeval tv = timeval_current(); int replies = 0; struct test_join *join_ctx; - const char *password; + struct cli_credentials *machine_credentials; const char *dom_sid; join_ctx = torture_join_domain(TEST_NAME, - ACB_WSTRUST, &password); + ACB_WSTRUST, &machine_credentials); if (join_ctx == NULL) { printf("Failed to join domain %s as %s\n", lp_workgroup(), TEST_NAME); talloc_free(dgmsock); -- cgit