From: Joseph Sutton Date: Thu, 15 Jun 2023 00:31:03 +0000 (+1200) Subject: s4:auth: Remove unneeded ‘sam_ctx’ parameter X-Git-Tag: talloc-2.4.1~355 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32fdc764efb5edbbaca9c1e5a6b5f896da411e52;p=thirdparty%2Fsamba.git s4:auth: Remove unneeded ‘sam_ctx’ parameter Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Thu Jun 15 06:30:35 UTC 2023 on atb-devel-224 --- diff --git a/source4/auth/ntlm/auth_sam.c b/source4/auth/ntlm/auth_sam.c index 6a94feaa66b..b5ac1bc858c 100644 --- a/source4/auth/ntlm/auth_sam.c +++ b/source4/auth/ntlm/auth_sam.c @@ -832,7 +832,7 @@ static NTSTATUS authsam_check_netlogon_trust(TALLOC_CTX *mem_ctx, } static NTSTATUS authsam_authenticate(struct auth4_context *auth_context, - TALLOC_CTX *mem_ctx, struct ldb_context *sam_ctx, + TALLOC_CTX *mem_ctx, struct ldb_dn *domain_dn, struct ldb_message *msg, const struct auth_usersupplied_info *user_info, @@ -874,7 +874,7 @@ static NTSTATUS authsam_authenticate(struct auth4_context *auth_context, } /* See whether an authentication policy applies to the client. */ - ret = authn_policy_ntlm_client(sam_ctx, + ret = authn_policy_ntlm_client(auth_context->sam_ctx, tmp_ctx, msg, &authn_client_policy); @@ -1080,7 +1080,6 @@ static NTSTATUS authsam_check_password_internals(struct auth_method_context *ctx nt_status = authsam_authenticate(ctx->auth_ctx, tmp_ctx, - ctx->auth_ctx->sam_ctx, domain_dn, msg, user_info,