]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture: Use cli_credentials_init_server()
authorAndreas Schneider <asn@samba.org>
Tue, 6 Apr 2021 13:22:20 +0000 (15:22 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 9 Apr 2021 11:48:00 +0000 (11:48 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Apr  9 11:48:00 UTC 2021 on sn-devel-184

source4/torture/winbind/winbind.c

index 9404f19716137109bfd0ae7d131973e0861168f7..b21dc5b0ef9eacf3731d0e9743781638ad8c1b2c 100644 (file)
@@ -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");