From 048e771665e00bb54f135299e02fe7941886a172 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 6 Apr 2021 15:22:20 +0200 Subject: s4:torture: Use cli_credentials_init_server() Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Fri Apr 9 11:48:00 UTC 2021 on sn-devel-184 --- source4/torture/winbind/winbind.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source4/torture/winbind/winbind.c b/source4/torture/winbind/winbind.c index 9404f197161..b21dc5b0ef9 100644 --- a/source4/torture/winbind/winbind.c +++ b/source4/torture/winbind/winbind.c @@ -194,14 +194,10 @@ static bool torture_winbind_pac(struct torture_context *tctx, TALLOC_CTX *tmp_ctx = talloc_new(tctx); torture_assert(tctx, tmp_ctx != NULL, "talloc_new() failed"); - machine_credentials = cli_credentials_init(tmp_ctx); + machine_credentials = cli_credentials_init_server(tmp_ctx, + tctx->lp_ctx); torture_assert(tctx, machine_credentials != NULL, "cli_credentials_init() failed"); - cli_credentials_set_conf(machine_credentials, tctx->lp_ctx); - - status = cli_credentials_set_machine_account(machine_credentials, tctx->lp_ctx); - torture_assert_ntstatus_ok(tctx, status, " cli_credentials_set_machine_account() (for server) failed"); - auth_context = talloc_zero(tmp_ctx, struct auth4_context); torture_assert(tctx, auth_context != NULL, "talloc_new() failed"); -- cgit v1.2.1