]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:auth: Remove unneeded ‘sam_ctx’ parameter
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 15 Jun 2023 00:31:03 +0000 (12:31 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 15 Jun 2023 06:30:35 +0000 (06:30 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Jun 15 06:30:35 UTC 2023 on atb-devel-224

source4/auth/ntlm/auth_sam.c

index 6a94feaa66b43b5b2701cce8a6b027850787872c..b5ac1bc858c0266f858206e142192db7ab4ec8dd 100644 (file)
@@ -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,