summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2021-04-06 15:22:20 +0200
committerAndreas Schneider <asn@cryptomilk.org>2021-04-09 11:48:00 +0000
commit048e771665e00bb54f135299e02fe7941886a172 (patch)
treef8a7fd266eec472feb5e2d738630c0b916d5bbbd /source4
parent4b2e7da37a1892b0eac7d9c29954466d98e5d665 (diff)
downloadsamba-048e771665e00bb54f135299e02fe7941886a172.tar.gz
s4:torture: Use cli_credentials_init_server()
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
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/winbind/winbind.c8
1 files 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");