s4-auth: Remove unused acct_flags parameter
authorAndrew Bartlett <abartlet@samba.org>
Wed, 16 Mar 2022 02:19:54 +0000 (15:19 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 29 Mar 2022 02:33:34 +0000 (02:33 +0000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/auth/ntlm/auth_sam.c

index 60795c4072332c55d03ad304a36a65c252cbdac0..8ece26977002e523c7e80b31f780e9b54cb9da87 100644 (file)
@@ -52,7 +52,6 @@ extern const char *domain_ref_attrs[];
 ****************************************************************************/
 static NTSTATUS authsam_password_ok(struct auth4_context *auth_context,
                                    TALLOC_CTX *mem_ctx,
-                                   uint16_t acct_flags,
                                    const struct samr_Password *nt_pwd,
                                    const struct auth_usersupplied_info *user_info, 
                                    DATA_BLOB *user_sess_key, 
@@ -207,7 +206,6 @@ static NTSTATUS authsam_password_check_and_record(struct auth4_context *auth_con
                                                  TALLOC_CTX *mem_ctx,
                                                  struct ldb_dn *domain_dn,
                                                  struct ldb_message *msg,
-                                                 uint16_t acct_flags,
                                                  const struct auth_usersupplied_info *user_info,
                                                  DATA_BLOB *user_sess_key,
                                                  DATA_BLOB *lm_sess_key,
@@ -273,7 +271,6 @@ static NTSTATUS authsam_password_check_and_record(struct auth4_context *auth_con
        }
 
        auth_status = authsam_password_ok(auth_context, tmp_ctx,
-                                         acct_flags,
                                          nt_pwd,
                                          user_info,
                                          user_sess_key, lm_sess_key);
@@ -369,7 +366,6 @@ static NTSTATUS authsam_password_check_and_record(struct auth4_context *auth_con
                }
 
                auth_status = authsam_password_ok(auth_context, tmp_ctx,
-                                                 acct_flags,
                                                  nt_history_pwd,
                                                  user_info,
                                                  user_sess_key,
@@ -551,7 +547,7 @@ static NTSTATUS authsam_authenticate(struct auth4_context *auth_context,
        }
 
        nt_status = authsam_password_check_and_record(auth_context, tmp_ctx,
-                                                     domain_dn, msg, acct_flags,
+                                                     domain_dn, msg,
                                                      user_info,
                                                      user_sess_key, lm_sess_key,
                                                      authoritative);