From: Andreas Schneider Date: Tue, 6 Apr 2021 13:22:20 +0000 (+0200) Subject: s4:torture: Use cli_credentials_init_server() X-Git-Tag: tevent-0.11.0~1232 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=048e771665e00bb54f135299e02fe7941886a172;p=thirdparty%2Fsamba.git 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 --- 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");